Skip to content

Commit 9a929bd

Browse files
committed
fixing
1 parent 39e0e32 commit 9a929bd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

services/director-v2/tests/unit/with_dbs/comp_scheduler/test_scheduler_dask.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,8 +1471,10 @@ class RebootState:
14711471
expected_task_state_group2: RunningState
14721472
expected_task_progress_group2: float
14731473
expected_run_state: RunningState
1474+
expected_pipeline_state_notification: int
14741475

14751476

1477+
@pytest.mark.testit
14761478
@pytest.mark.parametrize(
14771479
"reboot_state",
14781480
[
@@ -1485,6 +1487,7 @@ class RebootState:
14851487
expected_task_state_group2=RunningState.ABORTED,
14861488
expected_task_progress_group2=1,
14871489
expected_run_state=RunningState.FAILED,
1490+
expected_pipeline_state_notification=1,
14881491
),
14891492
id="reboot with lost tasks",
14901493
),
@@ -1497,6 +1500,7 @@ class RebootState:
14971500
expected_task_state_group2=RunningState.ABORTED,
14981501
expected_task_progress_group2=1,
14991502
expected_run_state=RunningState.ABORTED,
1503+
expected_pipeline_state_notification=1,
15001504
),
15011505
id="reboot with aborted tasks",
15021506
),
@@ -1509,6 +1513,7 @@ class RebootState:
15091513
expected_task_state_group2=RunningState.ABORTED,
15101514
expected_task_progress_group2=1,
15111515
expected_run_state=RunningState.FAILED,
1516+
expected_pipeline_state_notification=1,
15121517
),
15131518
id="reboot with failed tasks",
15141519
),
@@ -1523,6 +1528,7 @@ class RebootState:
15231528
expected_task_state_group2=RunningState.STARTED,
15241529
expected_task_progress_group2=0,
15251530
expected_run_state=RunningState.STARTED,
1531+
expected_pipeline_state_notification=0,
15261532
),
15271533
id="reboot with running tasks",
15281534
),
@@ -1535,6 +1541,7 @@ class RebootState:
15351541
expected_task_state_group2=RunningState.SUCCESS,
15361542
expected_task_progress_group2=1,
15371543
expected_run_state=RunningState.SUCCESS,
1544+
expected_pipeline_state_notification=1,
15381545
),
15391546
id="reboot with completed tasks",
15401547
),
@@ -1636,7 +1643,7 @@ async def mocked_get_task_result(_job_id: str) -> TaskOutputData:
16361643
)
16371644
await _assert_message_received(
16381645
computational_pipeline_rabbit_client_parser,
1639-
0,
1646+
reboot_state.expected_pipeline_state_notification,
16401647
ComputationalPipelineStatusMessage.model_validate_json,
16411648
)
16421649

0 commit comments

Comments
 (0)