Upgrading to Craft 6

Queuebert 6 is a native Craft 6 plugin built on Laravel’s queue. Your settings carry over, there’s no data to migrate, and for most sites the upgrade is two Composer commands.

Versions

Queuebert 5.xQueuebert 6.x
StatusStableBeta
Craft CMS5.4.0+6.0.0+
PHP8.2+8.5+
Install commandphp craft plugin/installphp artisan craft:plugin:install

1. Update to Queuebert 5.0.2

While the site is still on Craft 5, update Queuebert to the last 5.x release. Queuebert 6 won’t install over anything older.

composer require justinholtweb/craft-queuebert:^5.0.2
php craft up

2. Check for Custom Queue Components

If your config/app.php registers a second queue component, read Custom Queues below before you upgrade. If it doesn’t, there’s nothing to change.

3. Upgrade Craft and Queuebert Together

Follow Craft’s own Craft 6 upgrade guide, and require Queuebert 6 in the same step:

composer require "craftcms/cms:^6.0@beta" "justinholtweb/craft-queuebert:^6.0@beta" -W
php artisan craft:up

The bar appears the next time a job runs or waits. Drop the @beta flags once Craft 6 and Queuebert 6 have stable releases.

What Carries Over

  • Settings. They live in project config under the same keys, so the poll interval, the waiting and failed toggles, and the inspect limit come across unchanged.
  • Config file overrides. If you had config/queuebert.php, move it to config/craft/queuebert.php alongside Craft’s other config files. The keys are the same.

Custom Queues

Craft 5 queues were application components, and Queuebert 5 read every component implementing craft\queue\QueueInterface. Craft 6 has no application components. Its queue is Laravel’s queue, and a custom queue is just a queue name, optionally on its own connection in config/queue.php.

A Craft 5 component like this:

// config/app.php (Craft 5)
'components' => [
    'importQueue' => [
        'class' => \craft\queue\Queue::class,
        'channel' => 'import',
    ],
],

becomes a queue name you dispatch to and run a worker for:

ImportProducts::dispatch($feed)->onQueue('imports');
php artisan queue:work --queue=default,imports

Queuebert then picks it up in one of three ways:

You wantDo this
Counts for a queue on the database driverNothing. Discover queues automatically (on by default) finds it.
Counts for a Redis, SQS or Beanstalkd queueAdd it under Additional queues: imports or redis:imports.
Descriptions and progress, like Craft’s own queueAdd it to trackedQueueNames in config/craft/general.php.

What’s New

  • Discover queues automatically (autoDiscover, on): watch every queue name with jobs or failures on a database-driver connection.
  • Additional queues (watchQueues): queues that can’t be discovered, one per line, or an array in the config file.
  • Failures on queues outside Craft’s are counted from Laravel’s failed-jobs store.
  • The Inspect limit now caps only the Craft jobs Queuebert inspects. Other queues are counted by their driver.
  • The bar is dependency-free JavaScript built for Craft 6’s new control panel, and it stays put as you move between pages.

The Activity Endpoint

The bar now polls admin/queuebert/activity (your control-panel trigger, then queuebert/activity) instead of actions/queuebert/queue/info. It’s still limited to signed-in users with control-panel access. This only matters if a firewall or proxy rule allow-lists the old path.

Rolling Back

Queuebert 6 adds nothing to your database. To go back, restore your Craft 5 site and database from backup and require justinholtweb/craft-queuebert:^5.0.2.

The same guide ships with the plugin as UPGRADING.md.

More in Performance & Monitoring

Pairs well with Queuebert

Find out what's slow, what's broken and what's running before somebody emails you about it.