Skip to content

Built-in Tasks

The Queue plugin ships with three ready-to-use tasks for the most common asynchronous jobs.

TaskWhen to use
ExecuteRun a shell command (e.g. bin/cake importer run) asynchronously, with allow-listing and per-token escaping.
EmailSend an email built from Cake\Mailer\Message settings — most flexible, supports attachments, custom headers, custom Message classes.
MailerSend an email via a reusable Cake\Mailer\Mailer class action — best for standardized emails (welcome, password reset, etc.).

For writing your own task class, see Custom Tasks.

Released under the MIT License.