update_fleet
async
¶
update_fleet(
farm_id: FarmId,
fleet_id: FleetId,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = None,
client_token: Optional[ClientToken] = None,
display_name: Optional[ResourceName] = None,
description: Optional[Description] = None,
role_arn: Optional[IamRoleArn] = None,
min_worker_count: Optional[MinZeroMaxInteger] = None,
max_worker_count: Optional[MinZeroMaxInteger] = None,
configuration: Optional[FleetConfiguration] = None,
host_configuration: Optional[HostConfiguration] = None,
) -> UpdateFleetResponse
Updates a fleet.
Workers that are running when you call UpdateFleet keep the instance type and capabilities that they launched with until they scale in. Deadline Cloud can schedule jobs that you submit after the update on these existing workers, so the new configuration might not take effect immediately. To make sure that all workers use the new configuration, set maxWorkerCount to 0, use the ListWorkers operation to confirm that the fleet has no workers, and then restore maxWorkerCount.
Parameters:
-
farm_id(FarmId) –The farm ID to update.
-
fleet_id(FleetId) –The fleet ID to update.
-
client_token(Optional[ClientToken], default:None) –The unique token which the server uses to recognize retries of the same request.
-
display_name(Optional[ResourceName], default:None) –The display name of the fleet 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 fleet 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.
-
role_arn(Optional[IamRoleArn], default:None) –The IAM role ARN that the fleet's workers assume while running jobs.
-
min_worker_count(Optional[MinZeroMaxInteger], default:None) –The minimum number of workers in the fleet.
-
max_worker_count(Optional[MinZeroMaxInteger], default:None) –The maximum number of workers in the fleet.
Deadline Cloud limits the number of workers to less than or equal to the fleet's maximum worker count. The service maintains eventual consistency for the worker count. If you make multiple rapid calls to
CreateWorkerbefore the field updates, you might exceed your fleet's maximum worker count. For example, if yourmaxWorkerCountis 10 and you currently have 9 workers, making two quickCreateWorkercalls might successfully create 2 workers instead of 1, resulting in 11 total workers. -
configuration(Optional[FleetConfiguration], default:None) –The fleet configuration to update.
-
host_configuration(Optional[HostConfiguration], default:None) –Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.
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
4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 | |