Files
appwrite/src
copilot-swe-agent[bot] 034606c6ab Fix inverted time comparison in ScheduleExecutions enqueueResources
- 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>
2025-12-07 20:36:32 +00:00
..