Skip to content

Script to remove zombie rq workers from redis list after power outage #124

@CrimsonGlory

Description

@CrimsonGlory

After power outage, worker containers will failed to start because the name of the worker is already registered in the redis database.
The workaround is to remove de container and re-create it.
The permanent fix would be to have a script that:

  • Checks the current workers (Group A)
  • Checks the workers on the redis db (Group B)
  • Remove (Group B - Group A)
  • Move tasks (Group B - Group A) were handling to the failed queue.

Related
rq/rq#787

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions