update_queue
async
¶
update_queue(
farm_id: FarmId,
queue_id: QueueId,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = 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/async_deadline.py
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 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 | |