Your AdonisJS ecosystem, in the loop.
All insights
documentation

Queues Package Documentation Updates

· Developer impact : medium

The documentation for the @adonisjs/queue package has been updated with detailed instructions on installation, configuration, worker options, job retry policies, schedule management, and storage migration. Key changes include the addition of the #jobs/* import alias, clarifications on retry and backoff strategies, new worker CLI options such as --all-queues and --adapter, guidance on upgrading queue storage with the queue:migrate command, and notes on hot-reloading jobs during development.

What this means for your code

Developers using the @adonisjs/queue package should review the updated documentation to understand new configuration options, worker command flags, and the required storage migration process after upgrading the package. They may need to add the #jobs/* import alias to their package.json if upgrading from an earlier version, run the queue:migrate command after updating, and adjust worker startup commands to utilize new flags for processing multiple queues or adapters. Understanding retry policies and backoff strategies will help in configuring job retries effectively.

  • Add the #jobs/* import alias to package.json if upgrading from an earlier version.
  • Run node ace queue:migrate after updating @adonisjs/queue to upgrade storage.
  • Use new worker CLI options like --all-queues and --adapter to process multiple queues or specific adapters.
  • Review and configure retry policies and backoff strategies as per updated documentation.
  • Consider using the --hmr flag during development to hot-reload jobs without restarting the worker.

Updated documentation

Original sources

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.

Independent ecosystem watch. Sources linked in every insight.Built with AdonisJS · AI-assisted summariesBy Jérémy Chaufourier · chaufourier.fr