Skip to content

Commit 779a3b1

Browse files
authored
Merge pull request #567 from gemini-hlsw/GSCHED-822-scheduler-is-not-responding-for-long-plans
Some nights cycle.py run method while loop never ends
2 parents b4346c7 + bc1e922 commit 779a3b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scheduler/core/events/cycle/cycle.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ def run(self, site: Site, night_idx: NightIndex, nightly_timeline: NightlyTimeli
375375
# Advance the current time.
376376
current_timeslot += 1
377377

378+
if next_event_timeslot < current_timeslot:
379+
_logger.error(f'Next event timeslot {next_event_timeslot} is before current timeslot {current_timeslot} for site {site_name} on night {night_idx}.')
380+
break
381+
378382
self._process_remaining_events(site,
379383
night_idx,
380384
night_events,

0 commit comments

Comments
 (0)