create_run_group
async
¶
create_run_group(
request_id: RunGroupRequestId,
*,
config_overrides: Optional[AsyncOmicsClientConfig] = None,
name: Optional[RunGroupName] = None,
max_cpus: Optional[int] = None,
max_runs: Optional[int] = None,
max_duration: Optional[int] = None,
tags: Optional[TagMap] = None,
max_gpus: Optional[int] = None,
) -> CreateRunGroupResponse
Creates a run group to limit the compute resources for the runs that are added to the group. Returns an ARN, ID, and tags for the run group.
Parameters:
-
name(Optional[RunGroupName], default:None) –A name for the group.
-
max_cpus(Optional[int], default:None) –The maximum number of CPUs that can run concurrently across all active runs in the run group.
-
max_runs(Optional[int], default:None) –The maximum number of runs that can be running at the same time.
-
max_duration(Optional[int], default:None) –The maximum time for each run (in minutes). If a run exceeds the maximum run time, the run fails automatically.
-
tags(Optional[TagMap], default:None) –Tags for the group.
-
request_id(RunGroupRequestId) –To ensure that requests don't run multiple times, specify a unique ID for each request.
-
max_gpus(Optional[int], default:None) –The maximum number of GPUs that can run concurrently across all active runs in the run group.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request cannot be applied to the target resource in its current state.
-
InternalServerException–An unexpected error occurred. Try the request again.
-
RequestTimeoutException–The request timed out.
-
ResourceNotFoundException–The target resource was not found in the current Region.
-
ServiceQuotaExceededException–The request exceeds a service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_omics/_services/async_omics.py
3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 | |