@@ -317,13 +317,14 @@ async def test_orphan_reload(
317
317
"""Reload should not fail about orphaned tasks.
318
318
319
319
The following aspects of reload about orphans are tested:
320
- - Removal of both xtrigger and associated active/incomplete task.
321
320
- Broadcast deltas generated after reload.
321
+ https://github.com/cylc/cylc-flow/issues/6814
322
+ - Removal of both xtrigger and associated active/incomplete task.
323
+ https://github.com/cylc/cylc-flow/issues/6815
324
+
325
+ (Orphans being active/incomplete tasks removed from reloaded workflow cfg.)
322
326
"""
323
327
before = {
324
- 'scheduler' : {
325
- 'allow implicit tasks' : True
326
- },
327
328
'scheduling' : {
328
329
'initial cycle point' : '20010101T0000Z' ,
329
330
'graph' : {
@@ -335,9 +336,6 @@ async def test_orphan_reload(
335
336
}
336
337
}
337
338
after = {
338
- 'scheduler' : {
339
- 'allow implicit tasks' : True
340
- },
341
339
'scheduling' : {
342
340
'initial cycle point' : '20010101T0000Z' ,
343
341
'graph' : {
@@ -349,14 +347,11 @@ async def test_orphan_reload(
349
347
schd = scheduler (id_ )
350
348
async with start (schd ):
351
349
# spawn in bar
352
- foo = schd .pool .get_tasks ()[0 ]
353
- schd .pool .task_events_mgr .process_message (
354
- foo , '20010101T0000Z' , 'succeeded' )
355
- bar = schd .pool .get_tasks ()[0 ]
356
- assert bar .identity == '20010101T0000Z/bar'
350
+ foo = schd .pool ._get_task_by_id ('20010101T0000Z/foo' )
351
+ schd .pool .task_events_mgr .process_message (foo , 'INFO' , 'succeeded' )
352
+ bar = schd .pool ._get_task_by_id ('20010101T0000Z/bar' )
357
353
# set bar to failed
358
- schd .pool .task_events_mgr .process_message (
359
- bar , '20010101T0000Z' , 'failed' )
354
+ schd .pool .task_events_mgr .process_message (bar , 'INFO' , 'failed' )
360
355
361
356
# Save our progress
362
357
schd .workflow_db_mgr .put_task_pool (schd .pool )
0 commit comments