Skip to content

Child worker process should send WORKER_UP message within 2 seconds #1715

@anti-social

Description

@anti-social

In our project we have global data which loaded in Loader.on_worker_process_init method. Sometimes it takes more than 2 seconds. In that case when child process dies AsynPool starts new one and then kills it.

There are many messages in logs:

Timed out waiting for UP message from <Worker(Worker-6, started daemon)>

Moving data loading into worker_process_init signal handler doesn't help.
Now I moved loading data into Loader.on_task_init.

Maybe there should be option or setting which could set AsynPool._proc_alive_timeout attribute?
Or perhaps add information in docs that worker_process_init signal and Loader.on_worker_process_init should be executed within 2 seconds.

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