-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
test_stop_job_command__success
intermittently fails during the Tests py3.11/dj5.2.5/fakeredis
job.
Expected worker.current_job_name
to be None
, but it remains set (e.g. 'default::20251015192502233773'
).
To Reproduce
Run tests under the matrix job:
py3.11 / dj5.2.5 / fakeredis
- occasionally fails with:
AssertionError: 'default::20251015192502233773' is not None
Expected behavior
worker.current_job_name
should be cleared (None
) after stopping the job.
Screenshots
(see attached CI screenshot for failure)
Environment
- OS: Ubuntu (GitHub Actions)
- Python: 3.11
- Django: 5.2.5
- Redis:
fakeredis
backend
Additional context
This test fails intermittently - possibly a race condition in the worker’s stop_job()
cleanup logic.
Adding a small delay or verifying thread shutdown may stabilize it.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working