Defualting the jobs to PAUSED status for local, dev and test environments #236
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In the Workflow.post_init method, we now enforce that if the environment (as determined by BRICKFLOW_ENV is one of ["local", "dev", "test"] and the workflow’s [schedule_pause_status] is "UNPAUSED", it is automatically set to "PAUSED". This prevents non‑production workflows from running unintentionally.
Related Issue
#75
Motivation and Context
In non-production environments, workflows were unintentionally being executed with an “UNPAUSED” schedule status by default. This behavior posed risks during development and testing by potentially triggering workflows when it wasn’t intended. To address this, we updated the logic so that workflows running in environments such as local, dev, or test automatically have their schedule status set to "PAUSED" even if not explicitly configured. This ensures that workflows in non-production settings remain inactive until deliberately re-enabled.
Additionally, test cases related to bundle generation were enhanced. For non-local environments, required Git configuration (including a valid reference) is now provided, which prevents validation errors during bundle creation. These improvements help safeguard unintended workflow executions and ensure the bundle generation process accurately reflects the intended scheduling behavior across various environments.
How Has This Been Tested?
Unit Testing
Screenshots (if appropriate):
Types of changes
Checklist: