fix(2meet-data-optimizer): entity health sees a running backfill
- Backfill batches are scheduled with (entity, group) args; the health panel looked for (entity) alone, never saw one and kept offering to start a backfill, which resets the group's checkpoint - is_backfill_active() checks every group of the entity - Unit bootstrap: wp_next_scheduled() stub honours hook + args - Verify: EntityHealthBackfillTest (2 new); unit 711, phpcs 0, stan OK - PR: PR-137 (manual F-11)
This commit is contained in:
+1
-1
@@ -180,7 +180,7 @@ if ( ! function_exists( 'do_action_ref_array' ) ) {
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'wp_next_scheduled' ) ) {
|
||||
function wp_next_scheduled( string $hook ): int|false { return false; }
|
||||
function wp_next_scheduled( string $hook, array $args = array() ): int|false { return $GLOBALS['_wp_next_scheduled'][ $hook ][ md5( serialize( $args ) ) ] ?? false; }
|
||||
}
|
||||
if ( ! function_exists( 'wp_schedule_event' ) ) {
|
||||
function wp_schedule_event( int $t, string $r, string $h ): bool { return true; }
|
||||
|
||||
Reference in New Issue
Block a user