Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Intermittent failure: test_stop_job_command__success on py3.11/dj5.2.5/fakeredis job #321

Copy link
Copy link
@DhavalGojiya

Description

@DhavalGojiya
Issue body actions

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

job-log
(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

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.