Amazon Omics

2023/08/10 - Amazon Omics - 2 updated api methods

Changes  This release adds instanceType to GetRunTask & ListRunTasks responses.

GetRunTask (updated) Link ¶
Changes (response)
{'instanceType': 'string'}

Gets information about a workflow run task.

See also: AWS API Documentation

Request Syntax

client.get_run_task(
    id='string',
    taskId='string'
)
type id:

string

param id:

[REQUIRED]

The task's ID.

type taskId:

string

param taskId:

[REQUIRED]

The task's ID.

rtype:

dict

returns:

Response Syntax

{
    'taskId': 'string',
    'status': 'PENDING'|'STARTING'|'RUNNING'|'STOPPING'|'COMPLETED'|'CANCELLED'|'FAILED',
    'name': 'string',
    'cpus': 123,
    'memory': 123,
    'creationTime': datetime(2015, 1, 1),
    'startTime': datetime(2015, 1, 1),
    'stopTime': datetime(2015, 1, 1),
    'statusMessage': 'string',
    'logStream': 'string',
    'gpus': 123,
    'instanceType': 'string'
}

Response Structure

  • (dict) --

    • taskId (string) --

      The task's ID.

    • status (string) --

      The task's status.

    • name (string) --

      The task's name.

    • cpus (integer) --

      The task's CPU usage.

    • memory (integer) --

      The task's memory use in gigabytes.

    • creationTime (datetime) --

      When the task was created.

    • startTime (datetime) --

      The task's start time.

    • stopTime (datetime) --

      The task's stop time.

    • statusMessage (string) --

      The task's status message.

    • logStream (string) --

      The task's log stream.

    • gpus (integer) --

      The number of Graphics Processing Units (GPU) specified in the task.

    • instanceType (string) --

      The instance type for a task.

ListRunTasks (updated) Link ¶
Changes (response)
{'items': {'instanceType': 'string'}}

Retrieves a list of tasks for a run.

See also: AWS API Documentation

Request Syntax

client.list_run_tasks(
    id='string',
    status='PENDING'|'STARTING'|'RUNNING'|'STOPPING'|'COMPLETED'|'CANCELLED'|'FAILED',
    startingToken='string',
    maxResults=123
)
type id:

string

param id:

[REQUIRED]

The run's ID.

type status:

string

param status:

Filter the list by status.

type startingToken:

string

param startingToken:

Specify the pagination token from a previous request to retrieve the next page of results.

type maxResults:

integer

param maxResults:

The maximum number of run tasks to return in one page of results.

rtype:

dict

returns:

Response Syntax

{
    'items': [
        {
            'taskId': 'string',
            'status': 'PENDING'|'STARTING'|'RUNNING'|'STOPPING'|'COMPLETED'|'CANCELLED'|'FAILED',
            'name': 'string',
            'cpus': 123,
            'memory': 123,
            'creationTime': datetime(2015, 1, 1),
            'startTime': datetime(2015, 1, 1),
            'stopTime': datetime(2015, 1, 1),
            'gpus': 123,
            'instanceType': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • items (list) --

      A list of tasks.

      • (dict) --

        A workflow run task.

        • taskId (string) --

          The task's ID.

        • status (string) --

          The task's status.

        • name (string) --

          The task's name.

        • cpus (integer) --

          The task's CPU count.

        • memory (integer) --

          The task's memory use in gigabyes.

        • creationTime (datetime) --

          When the task was created.

        • startTime (datetime) --

          When the task started.

        • stopTime (datetime) --

          When the task stopped.

        • gpus (integer) --

          The number of Graphics Processing Units (GPU) specified for the task.

        • instanceType (string) --

          The instance type for a task.

    • nextToken (string) --

      A pagination token that's included if more results are available.