create_queue
async
¶
create_queue(
farm_id: FarmId,
display_name: ResourceName,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = 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/async_deadline.py
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 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 | |