Skip to content

Commit

Permalink
_parse_workflow_params → _set_workflow_params
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
  • Loading branch information
wxtim and oliver-sanders authored Aug 1, 2023
1 parent f11a304 commit c7f554c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cylc/flow/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ async def configure(self, params):
self._check_startup_opts()

if self.is_restart:
self._parse_workflow_params(params)
self._set_workflow_params(params)

self.profiler.log_memory("scheduler.py: before load_flow_file")
try:
Expand Down Expand Up @@ -1134,7 +1134,7 @@ async def command_reload_workflow(self) -> None:
self.reload_pending = 'applying the new config'
old_tasks = set(self.config.get_task_name_list())
# Things that can't change on workflow reload:
self._parse_workflow_params(
self._set_workflow_params(
self.workflow_db_mgr.pri_dao.select_workflow_params()
)
self.apply_new_config(config, is_reload=True)
Expand Down Expand Up @@ -1315,10 +1315,10 @@ def apply_new_config(self, config, is_reload=False):
'CYLC_WORKFLOW_FINAL_CYCLE_POINT': str(self.config.final_point),
})

def _parse_workflow_params(
def _set_workflow_params(
self, params: Iterable[Tuple[str, Optional[str]]]
) -> None:
"""Load a row in the "workflow_params" table in a restart/reload.
"""Set workflow params on restart/reload.
This currently includes:
* Initial/Final cycle points.
Expand Down

0 comments on commit c7f554c

Please sign in to comment.