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
Hi, I have researched issues but didn't find related issues with this.
(#160) <-- is it better to create custom time checker in job and use schedule.CancelJob?
(#226) <-- It looks like what i need, if i right understand
it could be some think like this: job = schedule.every().day.at("00:00").do(start_logging()).stop("23:59")
Thank you!
The text was updated successfully, but these errors were encountered:
Or i think one of the possible solution may be some think like this sample code:
if __name__ == "__main__":
job = schedule.every().day.at("00:00").do(start_logging())
while True:
jobs = schedule.get_running_jobs() # which return list, for example
if len(jobs) > 1:
jobs[0].kill() # stop previous job
Hi, I have researched issues but didn't find related issues with this.
(#160) <-- is it better to create custom time checker in job and use schedule.CancelJob?
(#226) <-- It looks like what i need, if i right understand
it could be some think like this:
job = schedule.every().day.at("00:00").do(start_logging()).stop("23:59")
Thank you!
The text was updated successfully, but these errors were encountered: