packagist dereuromark/cakephp-queue 8.16.0

3 hours ago

Fixes

  • Queued mails were sent with an empty body: EmailTask set the bodies from the payload, then Mailer::deliver('') re-rendered over them. SimpleQueueTransport payloads also lost headers, attachments and the configured transport (#515).
  • "Reset Failed" (and queue job reset all) re-queued running jobs, so a second worker ran them again. Only failed and aborted jobs are reset now (#515).
  • createJob() with unique no longer dedupes against an aborted job (#515).
  • A job whose worker dies on its last attempt (signal, SIGKILL, OOM) is marked aborted instead of showing as running forever. A job that completes after a signal handler marked it failed no longer keeps that failure (#515).
  • Queue.workerPhpTimeout is honored. queue worker kill works in multiserver mode, and queue worker end all handles several workers sharing PID 1 (#515).
  • Admin: the kill action only signals known worker PIDs, the connection switcher applies when "default" is chosen, redirects reject /\host, and job edits are limited to notbefore and priority (#515).
  • config/app.example.php referenced the removed Cake\Mailer\Email class (#515).

Improvements

  • The admin dashboard lists aborted jobs in their own card above the pending list, with attempts, the failure message, and inline reset and remove. Since 8.15.0 the pending list left them out, so a job that used up its retries was only reachable through the jobs list. The card follows Queue.adminDetailsLimit and is hidden while no job is aborted. New on QueuedJobsTable: getAbortedStats() and getAbortedCount() (#514).
  • Aborted job tooling: Queue.cleanupAbortedTimeout lets the cleanup remove aborted jobs (default 0 keeps them), queue job flush --aborted deletes them, and the dashboard card has a "Reset All" button. queue info shows the aborted count, and queue info --format json prints job counts, workers and statistics for monitoring (#516).
  • The jobs list status filter offers pending, running, failed and aborted, and the status helpers respect the persisted aborted status (#515).

Full Changelog: 8.15.1...8.16.0

Don't miss a new cakephp-queue release

NewReleases is sending notifications on new releases.