Skip to main content

Workflow Commands

Manage and execute processing workflows on assets. Workflows are automated pipelines that process asset files through various stages.


workflow list

List workflows in a database or all workflows across all databases.

vamscli workflow list [OPTIONS]
OptionTypeRequiredDescription
-d, --database-idTEXTNoDatabase ID to filter workflows
--show-deletedFlagNoInclude deleted workflows
--page-sizeINTEGERNoItems per page
--max-itemsINTEGERNoMax items (with --auto-paginate)
--starting-tokenTEXTNoPagination token
--auto-paginateFlagNoFetch all items automatically
--json-outputFlagNoOutput raw JSON response
vamscli workflow list
vamscli workflow list -d my-database
vamscli workflow list -d my-database --auto-paginate --json-output

workflow list-executions

List workflow executions for a specific asset.

vamscli workflow list-executions [OPTIONS]
OptionTypeRequiredDescription
-d, --database-idTEXTYesDatabase ID containing the asset
-a, --asset-idTEXTYesAsset ID
-w, --workflow-idTEXTNoFilter by workflow ID
--workflow-database-idTEXTNoWorkflow's database ID
--page-sizeINTEGERNoItems per page (max 50)
--max-itemsINTEGERNoMax items (with --auto-paginate)
--starting-tokenTEXTNoPagination token
--auto-paginateFlagNoFetch all items automatically
--json-outputFlagNoOutput raw JSON response
API Throttling

Page size is limited to 50 items per page due to AWS Step Functions API throttling. Use --auto-paginate to fetch more items across multiple pages.

Execution statuses

StatusDescription
NEWExecution created, not yet started
RUNNINGCurrently in progress
SUCCEEDEDCompleted successfully
FAILEDFailed with errors
TIMED_OUTExceeded time limit
ABORTEDManually aborted
vamscli workflow list-executions -d my-db -a my-asset
vamscli workflow list-executions -d my-db -a my-asset -w workflow-123
vamscli workflow list-executions -d my-db -a my-asset --auto-paginate

workflow execute

Execute a workflow on an asset.

vamscli workflow execute [OPTIONS]
OptionTypeRequiredDescription
-d, --database-idTEXTYesDatabase ID containing the asset
-a, --asset-idTEXTYesAsset ID to execute on
-w, --workflow-idTEXTYesWorkflow ID to execute
--workflow-database-idTEXTYesWorkflow's database ID
--file-keyTEXTNoSpecific file key to run workflow on
--json-outputFlagNoOutput raw JSON response
note

The command prevents duplicate executions. If the workflow is already running on the specified file, execution is blocked. All pipelines in the workflow must be enabled and accessible.

vamscli workflow execute -d my-db -a my-asset -w workflow-123 --workflow-database-id global
vamscli workflow execute -d my-db -a my-asset -w workflow-123 --workflow-database-id global --file-key "/models/building.gltf"

Workflow Example

Monitor execution

# Execute the workflow
vamscli workflow execute -d my-db -a my-asset -w workflow-123 --workflow-database-id global

# Check execution status
vamscli workflow list-executions -d my-db -a my-asset -w workflow-123

# Get only running executions
vamscli workflow list-executions -d my-db -a my-asset --json-output | jq '.Items[] | select(.executionStatus == "RUNNING")'