Skip to content

Add wait and interval params#235

Merged
cnolanminich merged 15 commits intomainfrom
add-wait-param-cherry
Aug 25, 2025
Merged

Add wait and interval params#235
cnolanminich merged 15 commits intomainfrom
add-wait-param-cherry

Conversation

@cnolanminich
Copy link
Contributor

supercedes #234 -- I tried adding streaming output but every permutation I tried resulted in non-blocking behavior, which invalidated the point of the PR. This PR is the same as the one reviewed previously but with the --interval param. Tested this by released to add-wait-param and testing https://github.com/dagster-io/hooli-data-eng-pipelines/actions/runs/16996834025/job/48342049932 with both wait and wait removed

- Add debug output to troubleshoot command execution
- Handle different output formats from dagster-cloud CLI when --wait is used
- Extract run ID from status messages like 'Run <id> is in progress'
- Fix GITHUB_OUTPUT format issue
- Test run script without wait flag (default behavior)
- Test run script with wait flag enabled (multi-line output)
- Test various truthy values for wait parameter
- Test backwards compatibility when INPUT_WAIT is not set
- Maintain original test for backwards compatibility
- Handle extraction of run ID from both single line and multi-line outputs
- Make run ID regex more flexible to handle both UUIDs and test strings
- Change from strict 36-char UUID pattern to more permissive alphanumeric pattern
- Allows tests to pass with mock data like 'some-run' while still working with real UUIDs
@cnolanminich cnolanminich mentioned this pull request Aug 18, 2025
@cnolanminich cnolanminich requested a review from gibsondan August 18, 2025 20:58
@github-actions
Copy link

github-actions bot commented Aug 18, 2025

Your pull request is automatically being deployed to Dagster Cloud.

Location Status Link Updated
from_gh_action View in Cloud Aug 25, 2025 at 03:18 PM (UTC)

Comment on lines +34 to +36
interval:
required: false
description: "Interval in seconds between status checks when waiting for job completion. Can only be used when wait is true."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this defaults to 30 if nothing is set, maybe worth mentioning here

@cnolanminich cnolanminich merged commit f136781 into main Aug 25, 2025
12 checks passed
@cnolanminich cnolanminich deleted the add-wait-param-cherry branch August 25, 2025 15:28
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.

2 participants