update_job
¶
update_job(
farm_id: FarmId,
queue_id: QueueId,
job_id: JobId,
*,
config_overrides: Optional[deadlineClientConfig] = None,
client_token: Optional[ClientToken] = None,
target_task_run_status: Optional[JobTargetTaskRunStatus] = None,
priority: Optional[JobPriority] = None,
max_failed_tasks_count: Optional[MaxFailedTasksCount] = None,
max_retries_per_task: Optional[MaxRetriesPerTask] = None,
lifecycle_status: Optional[UpdateJobLifecycleStatus] = None,
max_worker_count: Optional[MaxWorkerCount] = None,
name: Optional[JobName] = None,
description: Optional[JobDescriptionOverride] = None,
) -> UpdateJobResponse
Updates a job.
When you change the status of the job to ARCHIVED, the job can't be scheduled or archived.
An archived jobs and its steps and tasks are deleted after 120 days. The job can't be recovered.
Parameters:
-
farm_id(FarmId) –The farm ID of the job to update.
-
queue_id(QueueId) –The queue ID of the job to update.
-
job_id(JobId) –The job ID to update.
-
client_token(Optional[ClientToken], default:None) –The unique token which the server uses to recognize retries of the same request.
-
target_task_run_status(Optional[JobTargetTaskRunStatus], default:None) –The task status to update the job's tasks to.
-
priority(Optional[JobPriority], default:None) –The updated job priority.
-
max_failed_tasks_count(Optional[MaxFailedTasksCount], default:None) –The number of task failures before the job stops running and is marked as
FAILED. -
max_retries_per_task(Optional[MaxRetriesPerTask], default:None) –The maximum number of retries for a job.
-
lifecycle_status(Optional[UpdateJobLifecycleStatus], default:None) –The status of a job in its lifecycle. When you change the status of the job to
ARCHIVED, the job can't be scheduled or archived.An archived jobs and its steps and tasks are deleted after 120 days. The job can't be recovered.
-
max_worker_count(Optional[MaxWorkerCount], default:None) –The maximum number of worker hosts that can concurrently process a job. When the
maxWorkerCountis reached, no more workers will be assigned to process the job, even if the fleets assigned to the job's queue has available workers.You can't set the
maxWorkerCountto 0. If you set it to -1, there is no maximum number of workers.If you don't specify the
maxWorkerCount, the default is -1.The maximum number of workers that can process tasks in the job.
-
name(Optional[JobName], default:None) –The updated job name.
-
description(Optional[JobDescriptionOverride], default:None) –The updated job description.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
ConflictException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
-
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
7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 | |