Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Memory leak when using in conjunction with tests #34

@peterkinnaird

Description

@peterkinnaird

I'm using this driver for my tests only as a way of simulating background processing without actually having to run a queue just for tests. It's much better than the sync driver since it ensures that my test passing isn't strictly dependent on sequential execution, but every item I push in a test spawns a new process:

php artisan queue:async <number> --env=testing --delay=<some delay>.

It looks like these never exit, even on job completion or exit so I eventually run out of memory and start paging. Even when phpunit complete there are still lots of them left.

I'd love to be able to keep using this driver, but at the moment the only way I can get passable execution time on my test suite is by restarting my development VM after each test run. Any suggestions?

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