Skip to content

Commit e5f8cc7

Browse files
simulation: use the correct submission number
* `TaskProxy.tokens['job']` is always `None`. * This caused the DB check to retrieve the latest job, which is probably what we want. * Made this explicit by passing through the actual job number.
1 parent af7eb4f commit e5f8cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cylc/flow/run_modes/simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def __init__(
158158
db_info = db_mgr.pri_dao.select_task_job(
159159
itask.tokens['cycle'],
160160
itask.tokens['task'],
161-
itask.tokens['job'],
161+
itask.submit_num,
162162
)
163163

164164
if db_info['time_submit']:

0 commit comments

Comments
 (0)