create_queue
¶
create_queue(
farm_id: FarmId,
display_name: ResourceName,
*,
config_overrides: Optional[deadlineClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[Description] = None,
default_budget_action: Optional[DefaultQueueBudgetAction] = None,
job_attachment_settings: Optional[JobAttachmentSettings] = None,
role_arn: Optional[IamRoleArn] = None,
job_run_as_user: Optional[JobRunAsUser] = None,
required_file_system_location_names: Optional[
RequiredFileSystemLocationNames
] = None,
allowed_storage_profile_ids: Optional[AllowedStorageProfileIds] = None,
tags: Optional[Tags] = None,
scheduling_configuration: Optional[SchedulingConfiguration] = None,
) -> CreateQueueResponse
Creates a queue to coordinate the order in which jobs run on a farm. A queue can also specify where to pull resources and indicate where to output completed jobs.
Parameters:
-
farm_id(FarmId) –The farm ID of the farm to connect to the queue.
-
client_token(Optional[ClientToken], default:None) –The unique token which the server uses to recognize retries of the same request.
-
display_name(ResourceName) –The display name of the queue.
This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
-
description(Optional[Description], default:None) –The description of the queue.
This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
-
default_budget_action(Optional[DefaultQueueBudgetAction], default:None) –The default action to take on a queue if a budget isn't configured.
-
job_attachment_settings(Optional[JobAttachmentSettings], default:None) –The job attachment settings for the queue. These are the Amazon S3 bucket name and the Amazon S3 prefix.
-
role_arn(Optional[IamRoleArn], default:None) –The IAM role ARN that workers will use while running jobs for this queue.
-
job_run_as_user(Optional[JobRunAsUser], default:None) –The jobs in the queue run as the specified POSIX user.
-
required_file_system_location_names(Optional[RequiredFileSystemLocationNames], default:None) –The file system location name to include in the queue.
-
allowed_storage_profile_ids(Optional[AllowedStorageProfileIds], default:None) –The storage profile IDs to include in the queue.
-
tags(Optional[Tags], default:None) –Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.
-
scheduling_configuration(Optional[SchedulingConfiguration], default:None) –The scheduling configuration for the queue. This configuration determines how workers are assigned to jobs in the queue.
If not specified, the queue defaults to the
priorityFifoscheduling configuration.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
InternalServerErrorException–Deadline Cloud can't process your request right now. Try again later.
-
ResourceNotFoundException–The requested resource can't be found.
-
ServiceQuotaExceededException–You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of service resources or operations for your Amazon Web Services account.
-
ThrottlingException–Your request exceeded a request rate quota.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_deadline/_services/deadline.py
5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 | |