start_run
¶
start_run(
role_arn: RunRoleArn,
output_uri: RunOutputUri,
request_id: RunRequestId,
*,
config_overrides: Optional[OmicsClientConfig] = None,
workflow_id: Optional[WorkflowId] = None,
workflow_type: Optional[WorkflowType] = None,
run_id: Optional[RunId] = None,
name: Optional[RunName] = None,
cache_id: Optional[NumericIdInArn] = None,
cache_behavior: Optional[CacheBehavior] = None,
run_group_id: Optional[RunGroupId] = None,
priority: Optional[int] = None,
parameters: Optional[RunParameters] = None,
storage_capacity: Optional[int] = None,
log_level: Optional[RunLogLevel] = None,
tags: Optional[TagMap] = None,
retention_mode: Optional[RunRetentionMode] = None,
storage_type: Optional[StorageType] = None,
workflow_owner_id: Optional[WorkflowOwnerId] = None,
workflow_version_name: Optional[WorkflowVersionName] = None,
networking_mode: Optional[NetworkingMode] = None,
scratch_storage_mode: Optional[ScratchStorageMode] = None,
configuration_name: Optional[ConfigurationName] = None,
session_policy: Optional[SessionPolicy] = None,
engine_settings: Optional[EngineSettings] = None,
) -> StartRunResponse
Starts a new run and returns details about the run, or duplicates an existing run. A run is a single invocation of a workflow. If you provide request IDs, Amazon Web Services HealthOmics identifies duplicate requests and starts the run only once. Monitor the progress of the run by calling the GetRun API operation.
To start a new run, the following inputs are required:
-
A service role ARN (
roleArn). -
The run's workflow ID (
workflowId, not theuuidorrunId). -
An Amazon S3 location (
outputUri) where the run outputs will be saved. -
All required workflow parameters (
parameter), which can include optional parameters from the parameter template. The run cannot include any parameters that are not defined in the parameter template. To see all possible parameters, use theGetRunAPI operation. -
For runs with a
STATIC(default) storage type, specify the required storage capacity (in gibibytes). A storage capacity value is not required for runs that useDYNAMICstorage.
StartRun can also duplicate an existing run using the run's default values. You can modify these default values and/or add other optional inputs. To duplicate a run, the following inputs are required:
-
A service role ARN (
roleArn). -
The ID of the run to duplicate (
runId). -
An Amazon S3 location where the run outputs will be saved (
outputUri).
To learn more about the optional parameters for StartRun, see Starting a run in the Amazon Web Services HealthOmics User Guide.
Use the retentionMode input to control how long the metadata for each run is stored in CloudWatch. There are two retention modes:
-
Specify
REMOVEto automatically remove the oldest runs when you reach the maximum service retention limit for runs. It is recommended that you use theREMOVEmode to initiate major run requests so that your runs do not fail when you reach the limit. -
The
retentionModeis set to theRETAINmode by default, which allows you to manually remove runs after reaching the maximum service retention limit. Under this setting, you cannot create additional runs until you remove the excess runs.
To learn more about the retention modes, see Run retention mode in the Amazon Web Services HealthOmics User Guide.
You can use Amazon Q CLI to analyze run logs and make performance optimization recommendations. To get started, see the Amazon Web Services HealthOmics MCP server on GitHub.
Parameters:
-
workflow_id(Optional[WorkflowId], default:None) –The run's workflow ID. The
workflowIdis not the UUID. -
workflow_type(Optional[WorkflowType], default:None) –The run's workflow type. The
workflowTypemust be specified if you are running aREADY2RUNworkflow. If you are running aPRIVATEworkflow (default), you do not need to include the workflow type. -
run_id(Optional[RunId], default:None) –The ID of a run to duplicate.
-
role_arn(RunRoleArn) –A service role for the run. The
roleArnrequires access to Amazon Web Services HealthOmics, S3, Cloudwatch logs, and EC2. An exampleroleArnisarn:aws:iam::123456789012:role/omics-service-role-serviceRole-W8O1XMPL7QZ. In this example, the Amazon Web Services account ID is123456789012and the role name isomics-service-role-serviceRole-W8O1XMPL7QZ. -
name(Optional[RunName], default:None) –A name for the run. This is recommended to view and organize runs in the Amazon Web Services HealthOmics console and CloudWatch logs.
-
cache_id(Optional[NumericIdInArn], default:None) –Identifier of the cache associated with this run. If you don't specify a cache ID, no task outputs are cached for this run.
-
cache_behavior(Optional[CacheBehavior], default:None) –The cache behavior for the run. You specify this value if you want to override the default behavior for the cache. You had set the default value when you created the cache. For more information, see Run cache behavior in the Amazon Web Services HealthOmics User Guide.
-
run_group_id(Optional[RunGroupId], default:None) –The run's group ID. Use a run group to cap the compute resources (and number of concurrent runs) for the runs that you add to the run group.
-
priority(Optional[int], default:None) –Use the run priority (highest: 1) to establish the order of runs in a run group when you start a run. If multiple runs share the same priority, the run that was initiated first will have the higher priority. Runs that do not belong to a run group can be assigned a priority. The priorities of these runs are ranked among other runs that are not in a run group. For more information, see Run priority in the Amazon Web Services HealthOmics User Guide.
-
parameters(Optional[RunParameters], default:None) –Parameters for the run. The run needs all required parameters and can include optional parameters. The run cannot include any parameters that are not defined in the parameter template. To retrieve parameters from the run, use the GetRun API operation.
-
storage_capacity(Optional[int], default:None) –The
STATICstorage capacity (in gibibytes, GiB) for this run. The default run storage capacity is 1200 GiB. If your requested storage capacity is unavailable, the system rounds up the value to the nearest 1200 GiB multiple. If the requested storage capacity is still unavailable, the system rounds up the value to the nearest 2400 GiB multiple. This field is not required if the storage type isDYNAMIC(the system ignores any value that you enter). -
output_uri(RunOutputUri) –An output S3 URI for the run. The S3 bucket must be in the same region as the workflow. The role ARN must have permission to write to this S3 bucket.
-
log_level(Optional[RunLogLevel], default:None) –A log level for the run.
-
tags(Optional[TagMap], default:None) –Tags for the run. You can add up to 50 tags per run. For more information, see Adding a tag in the Amazon Web Services HealthOmics User Guide.
-
request_id(RunRequestId) –An idempotency token used to dedupe retry requests so that duplicate runs are not created.
-
retention_mode(Optional[RunRetentionMode], default:None) –The retention mode for the run. The default value is
RETAIN.Amazon Web Services HealthOmics stores a fixed number of runs that are available to the console and API. In the default mode (
RETAIN), you need to remove runs manually when the number of run exceeds the maximum. If you set the retention mode toREMOVE, Amazon Web Services HealthOmics automatically removes runs (that have mode set toREMOVE) when the number of run exceeds the maximum. All run logs are available in CloudWatch logs, if you need information about a run that is no longer available to the API.For more information about retention mode, see Specifying run retention mode in the Amazon Web Services HealthOmics User Guide.
-
storage_type(Optional[StorageType], default:None) –The storage type for the run. If you set the storage type to
DYNAMIC, Amazon Web Services HealthOmics dynamically scales the storage up or down, based on file system utilization. By default, the run usesSTATICstorage type, which allocates a fixed amount of storage. For more information aboutDYNAMICandSTATICstorage, see Run storage types in the Amazon Web Services HealthOmics User Guide. -
workflow_owner_id(Optional[WorkflowOwnerId], default:None) –The 12-digit account ID of the workflow owner that is used for running a shared workflow. The workflow owner ID can be retrieved using the
GetShareAPI operation. If you are the workflow owner, you do not need to include this ID. -
workflow_version_name(Optional[WorkflowVersionName], default:None) –The name of the workflow version. Use workflow versions to track and organize changes to the workflow. If your workflow has multiple versions, the run uses the default version unless you specify a version name. To learn more, see Workflow versioning in the Amazon Web Services HealthOmics User Guide.
-
networking_mode(Optional[NetworkingMode], default:None) –Optional configuration for run networking behavior. If not specified, this will default to RESTRICTED.
-
scratch_storage_mode(Optional[ScratchStorageMode], default:None) –Optional configuration for enabling scratch ephemeral storage mounted at /tmp. If not specified, this will default to SHARED. This configuration is applicable only for CPU tasks. For tasks using GPUs, scratch storage is always LOCAL.
-
configuration_name(Optional[ConfigurationName], default:None) –Optional configuration name to use for the workflow run.
-
session_policy(Optional[SessionPolicy], default:None) –Optional inline policy json for scoping down permissions via a session policy on the IAM role provided in the roleArn parameter.
-
engine_settings(Optional[EngineSettings], default:None) –Engine-specific settings for the workflow run. Use this field to specify configuration options that are specific to the workflow engine (for example, Nextflow profiles).
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/omics.py
3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 | |