mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
034606c6ab
- Changed condition from <= to > to fix inverted logic - Compute $now once at top of method to avoid timestamp drift - Use $now for both $intervalEnd and $delay calculations - Clamp $delay to 0 to prevent negative values to Co::sleep Bug: The old code skipped schedules within the enqueue window and processed schedules far in the future (opposite of intended behavior) Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>