Skip to content

Commit

Permalink
fix outstanding test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Pillinger authored and Tim Pillinger committed Sep 26, 2024
1 parent ca333ac commit 7aeed20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions cylc/flow/workflow_db_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,13 @@ def put_workflow_params(self, schd: 'Scheduler') -> None:
{"key": self.KEY_STOP_TASK, "value": schd.stop_task},
])

# Retrieve raw initial cycle point stored on the config.
value = getattr(schd.config, 'evaluated_icp', None)
# Store raw initial cycle point in the DB.
value = schd.config.evaluated_icp
value = None if value == 'reload' else value
self.put_workflow_params_1(self.KEY_INITIAL_CYCLE_POINT, value)
self.put_workflow_params_1(
self.KEY_INITIAL_CYCLE_POINT,
value or str(schd.config.initial_point)
)

for key in (
self.KEY_FINAL_CYCLE_POINT,
Expand Down
2 changes: 1 addition & 1 deletion tests/flakyfunctional/database/00-simple.t
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ UTC_mode|0
cycle_point_format|
cylc_version|$(cylc --version)
fcp|
icp|
icp|1
is_paused|0
n_restart|0
run_mode|
Expand Down

0 comments on commit 7aeed20

Please sign in to comment.