Action since v3.3.0
fswa_queue_processed
Fires after every queue batch, with the processed / succeeded / failed / rescheduled counts — also when the batch was empty.
$
/ Signature
do_action( 'fswa_queue_processed', $result )
/ When it fires
At the end of every queue tick — WP-Cron, Action Scheduler, System Cron or External Cron — after the last job of the batch. The Notifications sender uses it to flush pending notifications on the same tick that produced them. Fires even when no jobs were due, so it is a reliable "the queue ran" heartbeat.
/ Parameters
| Name | In | Type | Req | Description |
|---|---|---|---|---|
| $result | param | array | yes | `processed`, `succeeded`, `failed`, `rescheduled`, `stale_cleaned`, `orphans_closed` — integers for this tick. |
/ Examples
Record a heartbeat for an uptime monitor
add_action( 'fswa_queue_processed', function ( array $result ) { update_option( 'my_last_queue_tick', [ 'at' => time(), 'processed' => $result['processed'] ], false ); } );
/ Related
Ready Your next automation is
Your next automation is
one sentence away.
$ wp plugin install flowsystems-webhook-actions --activate