Skip to content

Limit Number of PHP processes #52

@codivist

Description

@codivist

It is possible to limit the number of php processes that get spawned?

I'm using this package to copy huge amounts of data after an upgrade takes place of my web app, and I don't mind if it takes 1 hour or 24 hours or more. However if there are millions of rows of data that need to get copied, the queue spawns over 100 php processes and CPU usages sits at 100% until most of the queue jobs are down.
Using ->delay(30) still spawns the php processes, but just delays them running, so the CPU still gets pegged.

Is there a way to keep the number of php process spawned to 5 or any number I choose? i.e. ->limitProc(5)

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