Jobs
The Job Library is Alteryx One’s executable-unit surface. A Job Library entry — a Job Group
identified by JOB-GROUP-ID — is a workflow or set of workflows that runs together and produces
outputs. You can list, execute, cancel, and inspect Job Library entries from the CLI. Mutating
commands are dry-run by default — add --apply to commit.
ayx one jobs <JOB-GROUP-ID> (no verb) inspects that aggregate job. The provider exposes no full
child-run detail endpoint of its own — the complete child records are returned by
ayx one jobs runs <JOB-GROUP-ID>.
When ayx one workflows run <WORKFLOW-ULID> starts a cloud-native workflow, the response
contains both a jobId and a jobgroupId. Use jobId with one workflows cancel; use
jobgroupId with one jobs runs to inspect the child workflow runs. There is no separate
one workflows runs command because Job Group is the provider’s run-history boundary.
Quick reference
Section titled “Quick reference”| Command | What it does |
|---|---|
ayx one jobs <JOB-GROUP-ID> |
Inspect an aggregate Job Group (no verb) |
ayx one jobs list |
List Job Library entries |
ayx one jobs count |
Count Job Library entries |
ayx one jobs status <JOB-GROUP-ID> |
Check the execution status of an aggregate Job Group |
ayx one jobs inputs <JOB-GROUP-ID> |
List aggregate Job Group inputs |
ayx one jobs outputs <JOB-GROUP-ID> |
List aggregate Job Group outputs |
ayx one jobs runs <JOB-GROUP-ID> |
List every child run for a Job Group execution |
ayx one jobs execute |
Submit a Job Group from a JSON request body |
ayx one jobs publish <JOB-GROUP-ID> |
Publish job results to a target |
ayx one jobs cancel <JOB-GROUP-ID> |
Cancel a Job Library entry |
Because a bare JOB-GROUP-ID and a verb subcommand are two different invocation shapes, they cannot be
combined — ayx one jobs 42 list is a usage error. Pick one: ayx one jobs 42 (aggregate lookup)
or ayx one jobs list (list all entries). --profile goes after the verb on subcommand
invocations (ayx one jobs runs <JOB-GROUP-ID> --profile <profile-id>), and directly on a bare lookup
(ayx one jobs <JOB-GROUP-ID> --profile <profile-id>).
Listing Job Library entries
Section titled “Listing Job Library entries”# All entries (first page)ayx one jobs list
# All entries, all pagesayx one jobs list --all
# Scoped to a profileayx one jobs list --profile <profile-id>
# Limit per pageayx one jobs list --limit 50
# Machine-readableayx -o json one jobs list --allInspecting an aggregate job
Section titled “Inspecting an aggregate job”# Aggregate-job lookup (bare JOB-GROUP-ID)ayx one jobs <JOB-GROUP-ID>
# Execution statusayx one jobs status <JOB-GROUP-ID>
# Input parameters (useful before submitting)ayx one jobs inputs <JOB-GROUP-ID>
# Outputs produced by the last runayx one jobs outputs <JOB-GROUP-ID>
# Every child run record for a Job Group executionayx one jobs runs <JOB-GROUP-ID>inputs tells you which parameters a Job Group accepts so you can build the correct submission
payload. runs lists the constituent child runs and their status, which is useful for diagnosing
partial failures — it’s the only way to see full child-run detail, since the provider has no
dedicated endpoint for that.
Submitting a job
Section titled “Submitting a job”--body <FILE|JSON|-> accepts a JSON file, inline non-secret JSON, or - for
piped stdin. Inline values are visible in shell history and process listings;
prefer a file or stdin for sensitive payloads:
# Write the request body to a filecat > body.json <<'EOF'{"jobGroupId":"<id>"}EOF
# Dry-run — shows the request, submits nothingayx one jobs execute --body body.json
# Commitayx one jobs execute --body body.json --apply
# With input overridescat > body-with-inputs.json <<'EOF'{"jobGroupId":"<id>","inputs":{"param":"value"}}EOFayx one jobs execute --body body-with-inputs.json --applyPublishing results
Section titled “Publishing results”--body <FILE|JSON|-> accepts the same file, inline, and stdin sources:
cat > publish-body.json <<'EOF'{"target":"<target>","...":{}}EOF
# Dry-runayx one jobs publish <JOB-GROUP-ID> --body publish-body.json
# Commitayx one jobs publish <JOB-GROUP-ID> --body publish-body.json --applyFor profile and publication queries see Results & publications.
Cancelling a job
Section titled “Cancelling a job”# Dry-runayx one jobs cancel <JOB-GROUP-ID>
# Commit (skips TTY prompt in CI)ayx one jobs cancel <JOB-GROUP-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 Library entries and show their status in one pass:
ayx -o json one jobs list --all \ | jq -r '.data.items[].id' \ | while read -r id; do STATUS=$(ayx -o json one jobs status "$id" | jq -r '.data.response') printf '%s\t%s\n' "$id" "$STATUS" doneSubmit a job and poll until complete:
ayx one jobs execute --body body.json --apply
# Poll statuswhile true; do STATUS=$(ayx -o json one jobs status <JOB-GROUP-ID> | jq -r '.data.response') 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 jobs
- Safety model — how dry-run and
--applywork - Output & automation — JSON envelope and scripting patterns