Skip to content

fix: correct WaitTask inputParameter key from 'wait_until' to 'until' - #467

Open
deeptireddy-lab wants to merge 1 commit into
mainfrom
fix/wait-task-wrong-input-key-426
Open

fix: correct WaitTask inputParameter key from 'wait_until' to 'until'#467
deeptireddy-lab wants to merge 1 commit into
mainfrom
fix/wait-task-wrong-input-key-426

Conversation

@deeptireddy-lab

Copy link
Copy Markdown

Summary

Fixes #426.

WaitTask.__init__(wait_until=...) was setting the inputParameter key as "wait_until", but the Conductor server reads "until" (see Wait.java: UNTIL_INPUT = "until"). This caused any workflow using WaitTask(wait_until=...) directly to stay RUNNING/IN_PROGRESS indefinitely — the server never evaluated the wait condition.

  • Root cause: one-line typo in wait_task.py line 25: "wait_until""until"
  • Scope: Only WaitTask.__init__() called with wait_until= was affected. WaitUntilTask already used the correct key and is unchanged.

Changes

  • src/conductor/client/workflow/task/wait_task.py — fix the wrong key ("wait_until""until")
  • tests/unit/workflow/test_wait_task.py — add unit tests for WaitTask, WaitForDurationTask, and WaitUntilTask to prevent regressions

Test plan

  • pytest tests/unit/workflow/test_wait_task.py — all 5 tests pass
  • WaitTask("ref", wait_until="2025-01-01 00:00 UTC").input_parameters returns {"until": "2025-01-01 00:00 UTC"} (not "wait_until")
  • Existing WaitUntilTask and WaitForDurationTask behaviour unchanged

🤖 Generated with Claude Code

…#426)

WaitTask.__init__() was setting the inputParameter key as "wait_until" but
the Conductor server expects "until" (see Wait.java: UNTIL_INPUT = "until").
This caused workflows using WaitTask(wait_until=...) to stay RUNNING
indefinitely because the server never evaluated the condition.

Also adds unit tests covering WaitTask, WaitForDurationTask, and WaitUntilTask
to prevent regressions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

WaitTask base class sets wrong inputParameter key 'wait_until' instead of 'until'

1 participant