description |
---|
Tips and hints on how to migrate to v6. |
Make sure to call runMigrations method from Queue class in order to execute all necessary changes when coming from an older version.
If you have paused queues after upgrading to this version. These jobs will be moved to wait state when initializing any of our instances (Worker, Queue, QueueEvents or FlowProducer).
Paused key is not longer needed as this state is already represented inside meta key. It also improves the process of pausing or resuming a queue as we don't need to rename any key.
When migrating from versions before v5. It's recommended to do this process:
- Pause your queues.
- Upgrade to v6.
- Instantiate a Queue instance and execute runMigrations method where migrations will be executed.
- Resume your queues.
This way you will prevent that your workers pick a legacy marker that is no longer used because new markers are added in a different structure.