Skip to content

Not all the worker launched if use supervisor to launch multiple workers #77

Open

Description

@alvin1

Hello there,

I'm host my app in docker and launch the rq worker with supervisor.

I create a bash script to help launch the worker, the core code is:

#!/usr/bin/env bash

worker_name=$1
queues=$2
launch_time=`date +"%s"`

flask rq worker -n ${worker_name}.${launch_time} ${queues}
exit $?

I tried launch 12 workers by supervisor. But only part of the workers launched and can be find in rq-dashboard. But all the process of each worker launched by script were up.

Are you have any idea about this issue?

And I found another weird issue. The queues of worker become blank in rq-dashboard, and the worker not process any job after that when the working running for a long time.

I had to restart the worker to take it back. When I review the log of supervisord and rq worker, nothing found.

Are you know what caused this issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions