Skip to main content

batches

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

Overview

Namebatches
TypeResource
Idaws.omics.batches

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier portion of the run batch ARN. (pattern: <code>[0-9]+</code>)
namestringThe optional user-friendly name of the batch. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
arnstringThe unique ARN of the run batch. (pattern: <code>arn:.+</code>)
creation_timestring (date-time)The timestamp when the batch was created.
default_run_settingobjectThe shared configuration applied to all runs in the batch. See DefaultRunSetting.
failed_timestring (date-time)The timestamp when the batch transitioned to a FAILED status.
failure_reasonstringA description of the batch failure. Present only when status is FAILED.
processed_timestring (date-time)The timestamp when all run executions completed.
run_summaryobjectA summary of run execution states. Run execution counts are eventually consistent and may lag behind actual run states. Final counts are accurate once the batch reaches PROCESSED status. See RunSummary.
statusstringThe current status of the run batch. Possible values: CREATING (initial setup), PENDING (ready to submit runs), SUBMITTING (submitting runs), INPROGRESS (runs executing), STOPPING (cancellation in progress), PROCESSED (all runs completed), CANCELLED (batch cancelled), FAILED (batch failed), RUNS_DELETING (deleting runs), RUNS_DELETED (runs deleted). (CREATING, PENDING, SUBMITTING, INPROGRESS, STOPPING, CANCELLED, FAILED, PROCESSED, RUNS_DELETING, RUNS_DELETED)
submission_summaryobjectA summary of run submission outcomes. See SubmissionSummary.
submitted_timestring (date-time)The timestamp when all run submissions completed.
tagsobjectAWS tags associated with the run batch.
total_runsintegerThe total number of runs in the batch.
uuidstringThe universally unique identifier (UUID) for the run batch. (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_batchselectbatch_id, regionRetrieves details and current status for a specific run batch, including submission progress and run execution counts.
list_batchselectregionmaxItems, startingToken, status, name, runGroupIdReturns a list of run batches in your account, with optional filtering by status, name, or run group. Results are paginated. Only one filter per call is supported.
delete_batchdeletebatch_id, regionDeletes a run batch resource and its associated metadata. This operation does not delete the individual workflow runs. To delete the runs, call DeleteRunBatch before calling DeleteBatch. DeleteBatch requires the batch to be in a terminal state: PROCESSED, FAILED, CANCELLED, or RUNS_DELETED. After DeleteBatch completes, the batch metadata is no longer accessible. You cannot call GetBatch, ListRunsInBatch, DeleteRunBatch, or CancelRunBatch on a deleted batch.
delete_run_batchdeleteregionDeletes the individual workflow runs within a batch. This operation is separate from DeleteBatch, which removes the batch metadata. Delete is only allowed on batches in PROCESSED or CANCELLED state. Delete operations are non-atomic and may be partially successful. Use GetBatch to review successfulDeleteSubmissionCount and failedDeleteSubmissionCount in the submissionSummary. Only one cancel or delete operation per batch is allowed at a time.
batch_delete_read_setexecsequence_store_id, region, idsDeletes one or more read sets. If the operation is successful, it returns a response with no body. If there is an error with deleting one of the read sets, the operation returns an error list. If the operation successfully deletes only a subset of files, it will return an error list for the remaining files that fail to be deleted. There is a limit of 100 read sets that can be deleted in each BatchDeleteReadSet API call.

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
batch_idstringThe identifier portion of the run batch ARN.
regionstringAWS region (default: us-east-1)
sequence_store_idstringThe read sets' sequence store ID.
maxItemsintegerThe maximum number of batches to return. If not specified, defaults to 100.
namestringFilter batches by name.
runGroupIdstringFilter batches by run group ID.
startingTokenstringA pagination token returned from a prior ListBatch call.
statusstringFilter batches by status.

SELECT examples

Retrieves details and current status for a specific run batch, including submission progress and run execution counts.

SELECT
id,
name,
arn,
creation_time,
default_run_setting,
failed_time,
failure_reason,
processed_time,
run_summary,
status,
submission_summary,
submitted_time,
tags,
total_runs,
uuid
FROM aws.omics.batches
WHERE batch_id = '{{ batch_id }}' -- required
AND region = '{{ region }}' -- required
;

DELETE examples

Deletes a run batch resource and its associated metadata. This operation does not delete the individual workflow runs. To delete the runs, call DeleteRunBatch before calling DeleteBatch. DeleteBatch requires the batch to be in a terminal state: PROCESSED, FAILED, CANCELLED, or RUNS_DELETED. After DeleteBatch completes, the batch metadata is no longer accessible. You cannot call GetBatch, ListRunsInBatch, DeleteRunBatch, or CancelRunBatch on a deleted batch.

DELETE FROM aws.omics.batches
WHERE batch_id = '{{ batch_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Deletes one or more read sets. If the operation is successful, it returns a response with no body. If there is an error with deleting one of the read sets, the operation returns an error list. If the operation successfully deletes only a subset of files, it will return an error list for the remaining files that fail to be deleted. There is a limit of 100 read sets that can be deleted in each BatchDeleteReadSet API call.

EXEC aws.omics.batches.batch_delete_read_set
@sequence_store_id='{{ sequence_store_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"ids": "{{ ids }}"
}'
;