Skip to content

atmosphere_publish_retry_delays

github-actions[bot] edited this page Jul 15, 2026 · 8 revisions

Filters the backoff ladder for transient publish/update failures.

One entry per retry, in seconds — the ladder's length IS the retry budget. Return an empty array to disable retries, or a longer array to raise the budget (the same knob covers both, so the delay schedule and the attempt cap cannot contradict each other).

Auto-generated Example

/**
 * Filters the backoff ladder for transient publish/update failures.
 * 
 * One entry per retry, in seconds — the ladder's length IS the
 * retry budget. Return an empty array to disable retries, or a
 * longer array to raise the budget (the same knob covers both,
 * so the delay schedule and the attempt cap cannot contradict
 * each other).
 *
 * @param Atmosphere\int[] $delays 
 * @return Atmosphere\int[] The filtered value.
 */
function my_atmosphere_publish_retry_delays_callback( Atmosphere\int[] $delays ) {
    // Your code here.
    return $delays;
}
add_filter( 'atmosphere_publish_retry_delays', 'my_atmosphere_publish_retry_delays_callback' );

Parameters

  • Atmosphere\int[] $delays Retry delays in seconds. Default 60, 300, 900.

Files

\apply_filters( 'atmosphere_publish_retry_delays', self::PUBLISH_RETRY_DELAYS )

← All Hooks

Clone this wiki locally