Skip to content

Commit

Permalink
Clear Template Variables from scheduler options before reload (#5996)
Browse files Browse the repository at this point in the history
Clear -S and -D from options to force reload

* Closes #5968
  • Loading branch information
wxtim authored Feb 26, 2024
1 parent 90356cc commit bbd4105
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cylc/flow/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,10 @@ def _configure_contact(self) -> None:
def load_flow_file(self, is_reload=False):
"""Load, and log the workflow definition."""
# Local workflow environment set therein.
# Allow -S and -D to take effect in Cylc VR.
# https://github.com/cylc/cylc-flow/issues/5968
self.options.rose_template_vars = []
self.options.defines = []
return WorkflowConfig(
self.workflow,
self.flow_file,
Expand Down

0 comments on commit bbd4105

Please sign in to comment.