BatchQueue
Bases: DuploTenantResourceV3
Manage AWS Batch Job Resources
Run batch jobs as a managed service on AWS infrastructure.
Read more docs here: https://docs.duplocloud.com/docs/overview/aws-services/batch
apply
Apply a BatchQueue
Create or Update a BatchQueue resource with Duplocloud cli.
CLI Usage
Contents of thebatchqueue.yaml file
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
BODY
|
The resource to apply. |
required |
wait
|
WAIT
|
Wait for the resource to be created. |
False
|
patches
|
PATCHES
|
The patches to apply to the resource. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
Success message. |
create
Create a Batch Job Queue.
Creates a new Batch Job Queue with the specified configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
BODY
|
The configuration for the Batch Job Queue. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict
|
The created Batch Job Queue object. |
delete
Delete a BatchQueue resource by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
NAME
|
The name of the BatchQueue resource to delete. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
A success message. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the {{kind}} resource could not be found or deleted. |
disable
Disable a Batch Compute Environment.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
NAME
|
The name of the Batch Compute Environment to delete. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
A success message. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the Batch Compute Environment could not be found or deleted. |
find
Find a Single Batch Job Queue by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
NAME
|
The name of the Batch Job Queue to find. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
resource |
dict
|
The Batch Job Queue object. |
list
Retrieve a List of BatchQueue resources
Returns:
| Name | Type | Description |
|---|---|---|
list |
list
|
A list of BatchQueue. |
update
Update a V3 resource by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
NAME
|
The name of the resource to update. |
None
|
body
|
BODY
|
The resource to update. |
None
|
patches
|
PATCHES
|
The patches to apply to the resource. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
message |
Success message. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the resource could not be created. |
wait
Wait for Resource
Waits for a the given wait_check callable to complete successfully. If the global wait_timeout is set on the DuploClient, it will override the timeout parameter so that a user can always choose their own timeout for waiting operations. The timeout param for other functions is just a default value for that particular resource operation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wait_check
|
callable
|
A callable function to check if the resource is ready. |
required |
timeout
|
int
|
The maximum time to wait in seconds. Default is 3600 seconds (1 hour). |
3600
|
poll
|
int
|
The polling interval in seconds. Default is 10 seconds. |
10
|