Queue Worker filtered removing messages from all queues
@markstory is already working on this.
Since Feb 28, 2023.
- Dominant language
- PHP
- Stars
- 36
- Forks
- 22
- Avg merge
- 20h 36m
- Merged PRs (30d)
- 2
Description
Hello,
I'm using cake4 and mongoDb as transport
I've the following scenario where I've 2 different messages in 2 different queues
QueueManager::push(ExampleJob::class, ['id' => 1, 'code' => 'oi1'], ['queue' => 'test']);
QueueManager::push(ExampleJob::class, ['id' => 1, 'code' => 'oi1'], ['queue' => 'new-test']);
And when I run the worker by queue, all messages are removed from the database but only the correct queue is called.
If I run the cli below, both jobs will be removed from database, but only the first one will run.
bin/cake queue worker --queue=test
Am I using it wrongly or is this a bug?
Thank you
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.