Skip to content

Commit

Permalink
don't use 0
Browse files Browse the repository at this point in the history
  • Loading branch information
chengshifan committed May 27, 2024
1 parent 4e35c54 commit bad43a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scheduler/kubernetes/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ def handle_cron_jobs(self):
result = cursor.fetchone()
if result:
self.logger.info(f"### result is {result}")
last_trigger = result[0]
last_trigger = result['last_trigger']
i = croniter('%s %s %s %s %s' % (c['minute'], c['hour'], c['day_month'], c['month'], c['day_week']), last_trigger)
next_trigger = i.get_next(datetime)
if next_trigger > datetime.now():
Expand Down

0 comments on commit bad43a1

Please sign in to comment.