update_queue
¶
update_queue(
farm_id: FarmId,
queue_id: QueueId,
*,
config_overrides: Optional[deadlineClientConfig] = None,
client_token: Optional[ClientToken] = None,
display_name: Optional[ResourceName] = 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_to_add: Optional[
RequiredFileSystemLocationNames
] = None,
required_file_system_location_names_to_remove: Optional[
RequiredFileSystemLocationNames
] = None,
allowed_storage_profile_ids_to_add: Optional[AllowedStorageProfileIds] = None,
allowed_storage_profile_ids_to_remove: Optional[AllowedStorageProfileIds] = None,
scheduling_configuration: Optional[SchedulingConfiguration] = None,
) -> UpdateQueueResponse
Updates a queue.
Parameters:
-
farm_id(FarmId) –The farm ID to update in the queue.
-
queue_id(QueueId) –The queue ID to update.
-
client_token(Optional[ClientToken], default:None) –The idempotency token to update in the queue.
-
display_name(Optional[ResourceName], default:None) –The display name of the queue to update.
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 to update.
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 for a queue update if a budget isn't configured.
-
job_attachment_settings(Optional[JobAttachmentSettings], default:None) –The job attachment settings to update for the queue.
-
role_arn(Optional[IamRoleArn], default:None) –The IAM role ARN that's used to run jobs from this queue.
-
job_run_as_user(Optional[JobRunAsUser], default:None) –Update the jobs in the queue to run as a specified POSIX user.
-
required_file_system_location_names_to_add(Optional[RequiredFileSystemLocationNames], default:None) –The required file system location names to add to the queue.
-
required_file_system_location_names_to_remove(Optional[RequiredFileSystemLocationNames], default:None) –The required file system location names to remove from the queue.
-
allowed_storage_profile_ids_to_add(Optional[AllowedStorageProfileIds], default:None) –The storage profile IDs to add.
-
allowed_storage_profile_ids_to_remove(Optional[AllowedStorageProfileIds], default:None) –The storage profile ID to remove.
-
scheduling_configuration(Optional[SchedulingConfiguration], default:None) –The scheduling configuration for the queue. This configuration determines how workers are assigned to jobs in the queue.
When updating the scheduling configuration, the entire configuration is replaced.
In-progress tasks run to completion before the new scheduling configuration takes effect.
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.
-
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
5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 | |