global_execution_client

An example client. This will be imported by dependent APIs.

Module Contents

Classes

GlobalExecutionClient

This API's client class.

class global_execution_client.GlobalExecutionClient(api_url, session=None)

This API’s client class.

logger
get_job_status(execution_id)

Get the status of a job.

Parameters:

execution_id (str) – The ID of the job to retrieve.

Returns:

A get execution response.

Return type:

requests.models.Response

health()

Get the service health.

Returns:

A requests response.

Return type:

requests.models.Response

ping()

Ping the service.

Returns:

A requests response.

Return type:

requests.models.Response

submit_job(job_request)

Submit a job to the compute service.

Parameters:

job_request (dict) – The job request data.

Returns:

A submit job response.

Return type:

requests.models.Response