You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+36
Original file line number
Diff line number
Diff line change
@@ -209,6 +209,42 @@ It will use your custom APP `QueueEmailTask` to send out emails via CLI.
209
209
210
210
Important: Do not forget to set your [domain](https://book.cakephp.org/3.0/en/core-libraries/email.html#sending-emails-from-cli) when sending from CLI.
211
211
212
+
### Avoid re-queuing
213
+
214
+
For some background-tasks you will want to make sure only a single instance of this type is currently run.
215
+
In your logic you can check on this using `isQueued()` and a unique reference:
0 commit comments