Skip to content

Commit

Permalink
Fix simulation mode submit num bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Sep 9, 2024
1 parent 7a4f90d commit a757baf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes.d/6362.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed simulation mode bug where the task submit number would not increment
5 changes: 3 additions & 2 deletions cylc/flow/workflow_db_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,15 @@ def put_update_task_state(self, itask):
"status": itask.state.status,
"flow_wait": itask.flow_wait,
"is_manual_submit": itask.is_manual_submit,
"submit_num": itask.submit_num,
}
# Note tasks_states table rows are for latest submit_num only
# (not one row per submit).
where_args = {
"cycle": str(itask.point),
"name": itask.tdef.name,
"flow_nums": serialise_set(itask.flow_nums),
}
# Note tasks_states table rows are for latest submit_num only
# (not one row per submit).
self.db_updates_map.setdefault(self.TABLE_TASK_STATES, [])
self.db_updates_map[self.TABLE_TASK_STATES].append(
(set_args, where_args))
Expand Down

0 comments on commit a757baf

Please sign in to comment.