Run AWS Batch Job
Submit an AWS Batch job and wait for it to finish.
Category: Other
Run AWS Batch job definition '<<BatchJobDefinition>>' on job queue '<<BatchJobQueue>>'
To use this activity within the API, use an ActivityCode of EXEC-AWS-BATCH.
Example JSON
An example of what the Task Config would look like for a task using this activity. Some of these variables would be set at the group level to avoid duplication between tasks.
{
"BatchJobQueue": "",
"BatchJobDefinition": ""
}
Variable Reference
The following variables are supported:
BatchCommand(Optional) - Overrides the command in the job definition. Leave empty to run the job definition's own command.BatchEnvironment(Optional) - Environment variables to set on the job's container, as JSON e.g. { "NAME": "value" }. TASK_RUN_KEY is always set.BatchJobDefinition(Required) - Name, name:revision or ARN of the AWS Batch job definition to run.BatchJobQueue(Required) - Name or ARN of the AWS Batch job queue to submit the job to.BatchTimeout(Optional) - Minutes each job attempt may run before AWS Batch stops it. Leave empty to keep the job definition's timeout.IsFederated(Optional) - Makes task available to other Insight Factories within this organisation.Links(Optional)MaximumNumberOfAttemptsAllowed(Optional) - The total number of times the running of this Task can be attempted.MaximumRunTimeHours(Optional) - The maximum number of hours a task run is expected to take. If a run exceeds this duration it will be flagged as stuck.MinutesToWaitBeforeNextAttempt(Optional) - If a Task run fails, the number of minutes to wait before re-attempting the Task.