Skip to content

Fix step exit code references in examples - #57

Merged
yohamta0 merged 1 commit into
mainfrom
fix/step-exit-code-refs
Nov 1, 2026
Merged

yohamta0 merged 1 commit into
mainfrom
fix/step-exit-code-refs

Conversation

@yohamta0

@yohamta0 yohamta0 commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Summary

Three graceful-degradation examples read a step's exit code from ${env.<STEP_ID>_EXIT_CODE}. Dagu has never set such a variable, so the precondition never matched and the fallback step was always skipped (item 4 of dagucloud/dagu#3033). The examples now use the supported ${<id>.exit_code} reference.

The queue page also now states that a dag.run child starts directly rather than through its queue, so the queue's max_concurrency does not limit it. The reporter of #3033 expected otherwise.

Changes

  • writing-workflows/continue-on.md: ${try_optimal_method.exit_code}, ${check_primary.exit_code}
  • writing-workflows/control-flow.md: ${try_advanced_method.exit_code}
  • writing-workflows/queues.md: one sentence on dag.run and queue limits

Validation

Ran a DAG locally with a step that exits 7 under continue_on: failed. The ${env.FLASH_EXIT_CODE} precondition skips the step; ${flash.exit_code} runs it.

Related: dagucloud/dagu#3461


Summary by cubic

Fixes three graceful-degradation examples that read a step's exit code from the unsupported ${env.<STEP_ID>_EXIT_CODE} variable, which Dagu never sets, causing the fallback step to always be skipped. The examples now use the supported ${<id>.exit_code} reference (dagucloud/dagu#3033).

Also clarifies in the queues doc that a dag.run child starts directly rather than through its queue, so the queue's max_concurrency does not limit it.

Written for commit 5d6504a. Summary will update on new commits.

View guided diff Turn on auto-fix

The graceful-degradation examples read a step's exit code from an
environment variable named after the step ID. Dagu sets no such
variable, so the precondition never matched and the fallback step was
always skipped. Use the supported ${<id>.exit_code} reference.

Also state that a dag.run child does not go through its queue, so the
queue's max_concurrency does not limit it.

Refs dagucloud/dagu#3033
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
dagu-sh-docs 5d6504a Oct 31 2026, 03:19 PM

@yohamta0
yohamta0 merged commit ade86e9 into main Nov 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant