Tribe__Events__Aggregator__Record__Abstract::get_retry_interval()
Returns the default retry interval depending on this record frequency.
Return
(int)
Source
File: src/Tribe/Aggregator/Record/Abstract.php
public function get_retry_interval() {
if ( $this->frequency->interval === DAY_IN_SECONDS ) {
$retry_interval = 6 * HOUR_IN_SECONDS;
} elseif ( $this->frequency->interval < DAY_IN_SECONDS ) {
// do not retry and let the scheduled import try again next time
$retry_interval = 0;
} else {
$retry_interval = DAY_IN_SECONDS;
}
/**
* Filters the retry interval between a failure and a retry for a scheduled record.
*
* @since 4.6.15
*
* @param int $retry_interval An interval in seconds; defaults to the record frequency / 2.
* @param Tribe__Events__Aggregator__Record__Abstract $this
*/
return apply_filters( 'tribe_aggregator_scheduled_records_retry_interval', $retry_interval, $this );
}
Changelog
| Version | Description |
|---|---|
| 4.6.15 | Introduced. |