Skip to content

Commit

Permalink
Add flaky to a queue related test.
Browse files Browse the repository at this point in the history
This is a flaky, the queue tasks status might remain "Running" even if
it had already been completed, beside sometimes I also noticed it raise
a pytest fixture error.
  • Loading branch information
karajan1001 committed Aug 9, 2022
1 parent 2ca1d6c commit d6f8e5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/func/experiments/test_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def test_celery_logs(
assert "failed to reproduce 'failed-copy-file'" in captured.out


@pytest.mark.flaky(rerun=3)
def test_queue_remove_done(dvc, failed_tasks, success_tasks):
assert len(dvc.experiments.celery_queue.failed_stash) == 3
status = to_dict(dvc.experiments.celery_queue.status())
Expand Down

0 comments on commit d6f8e5a

Please sign in to comment.