You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting the scheduler between the hours of 11PM and 12AM while using start_at='once'causes the following exception to be thrown:
Traceback (most recent call last):
File "~/.virtualenvs/test/lib/python2.7/site-packages/gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "~/.virtualenvs/test/lib/python2.7/site-packages/greenclock/__init__.py", line 166, in run
delay = task.timer.next().total_seconds()
File "~/.virtualenvs/test/lib/python2.7/site-packages/greenclock/__init__.py", line 102, in next
return scheduled.replace(hour=now_.hour + 1) - now_
ValueError: hour must be in 0..23
<Greenlet at 0x10ec51690: <bound method Scheduler.run of <greenclock.Scheduler object at 0x10ed22d90>>(<greenclock.Task object at 0x10ed22ed0>)> failed with ValueError
When starting the scheduler between the hours of 11PM and 12AM while using
start_at='once'
causes the following exception to be thrown:Here is my code, very simple:
I need to run a job at midnight.
For now, I am able to work around it via `start_at='tomorrow' and setting it to run in the first seconds of the day like this:
Is this known and expected behavior? Seems like a bug to me...
Thanks!
The text was updated successfully, but these errors were encountered: