Skip to content

Commit 33ba82d

Browse files
committed
Tidy
1 parent 6c07579 commit 33ba82d

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

cylc/flow/data_store_mgr.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def __init__(self, schd, n_edge_distance=1):
570570
self.n_window_completed_walks = set()
571571
self.n_window_depths = {}
572572
self.update_window_depths = False
573-
self.db_load_task_proxies = {}
573+
self.db_load_task_proxies: Dict[str, Tuple[TaskProxy, bool]] = {}
574574
self.family_pruned_ids = set()
575575
self.prune_trigger_nodes = {}
576576
self.prune_flagged_nodes = set()
@@ -1527,12 +1527,10 @@ def apply_task_proxy_db_history(self):
15271527
# added to an already-spawned task before restart.)
15281528

15291529
# Extract info from itasks to data-store.
1530-
for task_info in self.db_load_task_proxies.values():
1530+
for itask, _is_parent in self.db_load_task_proxies.values():
15311531
self._process_internal_task_proxy(
1532-
task_info[0],
1533-
self.added[TASK_PROXIES][
1534-
self.id_.duplicate(task_info[0].tokens).id
1535-
]
1532+
itask,
1533+
self.added[TASK_PROXIES][self.id_.duplicate(itask.tokens).id]
15361534
)
15371535

15381536
# Batch load jobs from DB.

tests/integration/test_reload.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,7 @@ async def test_reload_waits_for_pending_tasks(
4646
See https://github.com/cylc/cylc-flow/issues/5107
4747
"""
4848
# a simple workflow with a single task
49-
id_ = flow({
50-
'scheduling': {
51-
'graph': {
52-
'R1': 'foo',
53-
},
54-
},
55-
'runtime': {
56-
'foo': {},
57-
},
58-
})
49+
id_ = flow('foo')
5950
schd = scheduler(id_, paused_start=False)
6051

6152
# we will artificially push the task through these states
@@ -270,7 +261,6 @@ async def test_reload_global_platform_group(
270261

271262
# Task using the platform group
272263
conf = {
273-
'scheduler': {'allow implicit tasks': True},
274264
'scheduling': {'graph': {'R1': 'one'}},
275265
'runtime': {
276266
'one': {

0 commit comments

Comments
 (0)