Skip to main content

run_tasks

Creates, updates, deletes, gets or lists a run_tasks resource.

Overview​

Namerun_tasks
TypeResource
Idaws.omics.run_tasks

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe task's name.
cache_hitbooleanSet to true if Amazon Web Services HealthOmics found a matching entry in the run cache for this task.
cache_s3_uristringUri to a S3 object or bucket (pattern: <code>s3:​//([a-z0-9][a-z0-9-.]{1,61}[a-z0-9])(/(.{0,1024}))?</code>)
cpusintegerThe task's CPU usage.
creation_timestring (date-time)When the task was created.
failure_reasonstringThe reason a task has failed. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
gpusintegerThe number of Graphics Processing Units (GPU) specified in the task.
image_detailsobjectDetails about the container image that this task uses.
instance_typestringThe instance type for a task. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
log_streamstringThe task's log stream. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
memoryintegerThe task's memory use in gigabytes.
start_timestring (date-time)The task's start time.
statusstringThe task's status. (PENDING, STARTING, RUNNING, STOPPING, COMPLETED, CANCELLED, FAILED)
status_messagestringThe task's status message. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
stop_timestring (date-time)The task's stop time.
task_idstringThe task's ID. (pattern: <code>[0-9]+</code>)
uuidstringThe universally unique identifier (UUID) for the workflow task. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_run_taskselectid, task_id, regionGets detailed information about a run task using its ID.
list_run_tasksselectid, regionstatus, startingToken, maxResultsReturns a list of tasks and status information within their specified run. Use this operation to monitor runs and to identify which specific tasks have failed.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe run's ID.
regionstringAWS region (default: us-east-1)
task_idstringThe task's ID.
maxResultsintegerThe maximum number of run tasks to return in one page of results.
startingTokenstringSpecify the pagination token from a previous request to retrieve the next page of results.
statusstringFilter the list by status.

SELECT examples​

Gets detailed information about a run task using its ID.

SELECT
name,
cache_hit,
cache_s3_uri,
cpus,
creation_time,
failure_reason,
gpus,
image_details,
instance_type,
log_stream,
memory,
start_time,
status,
status_message,
stop_time,
task_id,
uuid
FROM aws.omics.run_tasks
WHERE id = '{{ id }}' -- required
AND task_id = '{{ task_id }}' -- required
AND region = '{{ region }}' -- required
;