From bbd4105955922309a47add51fda0f126b924c091 Mon Sep 17 00:00:00 2001 From: Tim Pillinger <26465611+wxtim@users.noreply.github.com> Date: Mon, 26 Feb 2024 16:55:55 +0000 Subject: [PATCH] Clear Template Variables from scheduler options before reload (#5996) Clear -S and -D from options to force reload * Closes #5968 --- cylc/flow/scheduler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cylc/flow/scheduler.py b/cylc/flow/scheduler.py index 0d793997296..db55fae2494 100644 --- a/cylc/flow/scheduler.py +++ b/cylc/flow/scheduler.py @@ -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,