Skip to content

Is there any way to set multiprocess start method #5005

Closed

Description

@DonYum

In multiprocessing, there are 3 start_method: spawn/fork/forkserver. Each one have its own feature.

Such as, I want every worker have seperated file descriptors and handles. So I can only use spawn or forkserver method, rather than fork.

Ref: https://docs.python.org/3.4/library/multiprocessing.html?highlight=process#contexts-and-start-methods

However, celery only have fork method.

And I have try to use mp.set_start_method() to set it manually.
Unfortunately, it failed too.

Then I found celery use billiard rather than mp. So I tried billiard again, also fail.

Thx for your attention!

Activity

  1. DonYum commented on Sep 1, 2018

    @DonYum
    Author

    There is no reply for now. Maybe the format of this issue is not ok.

    So I submit another issue: #5021

  2. auvipy commented on Sep 3, 2018

    @auvipy
    Member

    please post your questions to mailing list or irc. issue tracker is for reporting bugs mainly.

  3. DonYum commented on Sep 4, 2018

    @DonYum
    Author

    @auvipy Thx for your reply.

    But I'm sorry. I can not reach Celery mailing list from China Internet because it's blocked.

    In #5021, I described in detail. If there are more info u need, just reply.

    Thanks!

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