run_scheduler never starts
Bug #1649169 reported by
kavin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-crontab |
Fix Committed
|
High
|
Martin Owens |
Bug Description
the Crontab method run_scheduler does not start unless passing a timeout value. Running the example from the documentation does not start the loop.
I've been able to successfully execute the scheduler by passing the timeout as != 0
snippet of the method.
def run_scheduler(self, timeout=0, **kwargs):
"""Run the CronTab as an internal scheduler (generator)"""
count = 0
self.run_pending()
while count != timeout:
...
...
To post a comment you must log in.
I've committed a fix, the timeout's default is now -1, which is no timeout. I've updated the documentation to describe the timeout too.