workflows versions dependencies create

Create a new workflow dependency

Synopsis

omics workbench workflows versions dependencies create
  --workflow=WORKFLOW_ID
  --version=VERSION_ID
  --name=DEPENDENCY_NAME
  --dependency=DEPENDENCY_SPEC [--dependency=DEPENDENCY_SPEC ...]
  [--global]
  [--namespace=NAMESPACE]

Description

Create a new workflow dependency that establishes prerequisites for a workflow version. Dependencies ensure that specified workflows are executed before the current workflow runs. You can specify multiple dependencies and use automatic version resolution.

Dependency specifications can be provided in two formats:

  • workflow-id/version-id - Specifies an explicit version

  • workflow-id - Automatically resolves to the latest version

Examples

Create a simple workflow dependency:

omics workbench workflows versions dependencies create \
  --workflow 40c67272-3553-4bb1-8662-81c81acff347 \
  --version latest \
  --name "Data preprocessing" \
  --dependency "5633fe10-b66a-4a20-8258-9963e4cac6fa/v1.0"

Create a dependency with automatic version resolution:

omics workbench workflows versions dependencies create \
  --workflow 40c67272-3553-4bb1-8662-81c81acff347 \
  --version v2.0 \
  --name "Analysis pipeline" \
  --dependency "preprocessing-workflow"

Create a dependency with multiple prerequisites:

omics workbench workflows versions dependencies create \
  --workflow 40c67272-3553-4bb1-8662-81c81acff347 \
  --version latest \
  --name "Multi-step analysis" \
  --dependency "data-cleaning/v1.2" \
  --dependency "quality-control/v2.1" \
  --dependency "normalization"

Create a global dependency (admin only):

omics workbench workflows versions dependencies create \
  --workflow 40c67272-3553-4bb1-8662-81c81acff347 \
  --version latest \
  --name "System dependency" \
  --dependency "system-init/v1.0" \
  --global

Flags

--workflow=WORKFLOW_ID

Required. Specify the UUID of the workflow for which you want to create a dependency.

--version=VERSION_ID

Required. Specify the version ID of the workflow for which you want to create a dependency.

--name=DEPENDENCY_NAME

Required. A human-readable name for the dependency that describes its purpose.

--dependency=DEPENDENCY_SPEC

Required. Specify a dependency in the format workflow-id/version-id or workflow-id. When only the workflow ID is provided, the system automatically resolves to the latest available version. This flag can be specified multiple times to create dependencies on multiple workflows.

--global

Create a global dependency that applies across all namespaces. This flag requires administrator privileges and adds the X-Admin-Only-Action header to the request.

--namespace=NAMESPACE

An optional flag to define the namespace to connect to. By default, the namespace is extracted from the user's credentials.

Last updated

Was this helpful?