Job groups
A job group is an executable unit in Alteryx One — a workflow or set of workflows that runs together and produces outputs. You can list, run, cancel, and inspect job groups from the CLI. Mutating commands are dry-run by default — add --apply to commit.
Quick reference
Section titled “Quick reference”| Command | What it does |
|---|---|
ayx one job-groups list |
List all job groups |
ayx one job-groups count |
Count job groups |
ayx one job-groups detail |
Inspect a job group record |
ayx one job-groups status |
Check the execution status of a job group |
ayx one job-groups inputs |
List input parameters for a job group |
ayx one job-groups outputs |
List outputs produced by a job group |
ayx one job-groups jobs |
List individual jobs within a job group |
ayx one job-groups run |
Trigger a job group run |
ayx one job-groups publish |
Publish job group results to a target |
ayx one job-groups cancel |
Cancel a running job group |
Listing job groups
Section titled “Listing job groups”# All job groups (first page)ayx one job-groups list
# All job groups, all pagesayx one job-groups list --all
# Scoped to a profileayx one job-groups list --profile <profile-id>
# Limit per pageayx one job-groups list --limit 50
# Machine-readableayx --output json one job-groups list --allWhen the API returns a null name for a job group, list synthesizes a display name: flow-{flowId} if a flowId is present, otherwise job-{id}. The synthesized name appears in both text and JSON output.
Inspecting a job group
Section titled “Inspecting a job group”# Full recordayx one job-groups detail <id>
# Execution statusayx one job-groups status <id>
# Input parameters (useful before triggering a run)ayx one job-groups inputs <id>
# Outputs produced by the last runayx one job-groups outputs <id>
# Individual jobs within the groupayx one job-groups jobs <id>inputs tells you which parameters a job group accepts so you can build the correct run payload. jobs lists the constituent jobs and their status, which is useful for diagnosing partial failures.
Triggering a run
Section titled “Triggering a run”# Dry-run — shows the request, triggers nothingayx one job-groups run --body '{"jobGroupId":"<id>"}'
# Commitayx one job-groups run --body '{"jobGroupId":"<id>"}' --apply
# With input overridesayx one job-groups run \ --body '{"jobGroupId":"<id>","inputs":{"param":"value"}}' \ --applyPublishing results
Section titled “Publishing results”# Dry-runayx one job-groups publish \ <id> \ --body '{"target":"<target>","...":{}}'
# Commitayx one job-groups publish \ <id> \ --body '{"target":"<target>","...":"{}"}' \ --applyFor profile and publication queries see Results & publications.
Cancelling a run
Section titled “Cancelling a run”# Dry-runayx one job-groups cancel <id>
# Commit (skips TTY prompt in CI)ayx one job-groups cancel <id> --apply --yesCancel is a best-effort operation. Jobs that have already completed are not affected.
Automation patterns
Section titled “Automation patterns”Find all job groups and show their status in one pass:
ayx --output json one job-groups list --all \ | jq -r '.data[].id' \ | xargs -I{} ayx --output json one job-groups status {} \ | jq -r '[.data.id, .data.status] | @tsv'Trigger a run and poll until complete:
ayx one job-groups run --body '{"jobGroupId":"<id>"}' --apply
# Poll statuswhile true; do STATUS=$(ayx --output json one job-groups status <id> | jq -r '.data.status') echo "$STATUS" [[ "$STATUS" == "Completed" || "$STATUS" == "Failed" ]] && break sleep 10doneRelated
Section titled “Related”- Results & publications — profile data, publication history, PDF results
- Scheduling — view and manage the schedules that trigger job groups
- Safety model — how dry-run and
--applywork - Output & automation — JSON envelope and scripting patterns