[scheduler] Properly handle millis() overflow (#8197)

Workflow stale.yml