packagist dereuromark/cakephp-queue 8.12.0

9 hours ago

⚠️ Breaking Changes

  • Queue.adminAccess is now required to access the admin backend at /admin/queue/.... The host application MUST set it to a Closure that returns literal true to grant access — anything else (unset, non-Closure, returns false, returns a truthy non-bool, throws) yields a 403. The admin UI can trigger jobs (via AddFromBackendInterface tasks), reset / remove queued jobs, and terminate workers; accidental exposure is harmful, so the default policy is now deny.

    Migration — add to config/bootstrap.php:

    use Cake\Core\Configure;
    use Cake\Http\ServerRequest;
    
    Configure::write('Queue.adminAccess', function (ServerRequest $request): bool {
        $identity = $request->getAttribute('identity');
        return $identity !== null && in_array('admin', (array)$identity->roles, true);
    });

    See docs/sections/admin_dashboard.md for the Authorization subsection. adminAccess is independent of Queue.standalone — the gate runs in both modes.

Improvements

  • Sweep stale queue_processes rows on worker startup (#480) — workers now clear orphan rows on launch instead of leaving them around for the timeout sweep.

Full Changelog: 8.11.0...8.12.0

Don't miss a new cakephp-queue release

NewReleases is sending notifications on new releases.