-
The main difference from v5 to 6 is that you no longer need extra 'driver' bundles, they are all included. You should remove any queue driver bundles you have installed, but make sure you add any dependencies they have directly, e.g. for SQS you should install
aws/aws-sdk-php
. -
You also need to make sure all your
Worker
classes are tagged withmcfedr_queue_manager.worker
. This will happen automatically with Symfony autowiring enabled, but for legacy projects you might need to add the tags manually. -
The bundle no longer requires your
Worker
s be public. -
The method
Worker::execute
now has avoid
return type. -
Replace references to
Mcfedr\DoctrineDelayQueueDriverBundle\Entity\DoctrineDelayJob
withMcfedr\QueueManagerBundle\Entity\DoctrineDelayJob
If you have a custom (non mcfedr/
) queue driver you will need to update it.
-
The abstract
RunnerCommand
has changed the interfaces to give and takeJobBatch
. -
When
finishJobs
is called, its possible the batch has unhandledJob
s in it that must be made available again. This is because the runner now attempts to handle out of memory errors gracefully. -
QueueManager::put
and::delete
now have return types added to the interface. -
If you have a custom runner, it should be using
JobExecutor
, and the interface for start and stop batch now takes aJobBatch
instead ofarray
s.