Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.01 KB

File metadata and controls

25 lines (16 loc) · 1.01 KB
description
Tips and hints on how to migrate to v6.

Migration to v6

Make sure to call runMigrations method from Queue class in order to execute all necessary changes when coming from an older version.

Migration of deprecated paused key

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.

Remove legacy markers

When migrating from versions before v5. It's recommended to do this process:

  1. Pause your queues.
  2. Upgrade to v6.
  3. Instantiate a Queue instance and execute runMigrations method where migrations will be executed.
  4. 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.