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
I have a feeling it's because I'm using multithreading, though I'm only using one schedule event. I don't really know what I'm doing wrong, but the event only runs once and then stops (instead of every three minutes or every day). I'm on windows 11 if that makes any difference. Putting the schedule code in another function doesn't help either.
###functions up here###
if __name__ == "__main__":
startThread = Thread(target=start).start()
userThread = Thread(target=userInput).start()
schedule.every(3).minutes.do(backup)
#schedule.every().day.at(backup_time).do(backup)
while True:
schedule.run_pending()
time.sleep(10)
The text was updated successfully, but these errors were encountered:
I'm having the same issue.
My job function uses the AWS Boto3 SDK, which, I think, uses threading/coroutine—maybe that is the issue.
In the older version without calling boto3, the scheduler worked fine.
I can work around it by invoking the part interacting with AWS boto3 in a subprocess. But it makes the code significantly convoluted. I'm pretty sure it's a common use case among the users, so please investigate.
I have a feeling it's because I'm using multithreading, though I'm only using one schedule event. I don't really know what I'm doing wrong, but the event only runs once and then stops (instead of every three minutes or every day). I'm on windows 11 if that makes any difference. Putting the schedule code in another function doesn't help either.
###functions up here###
The text was updated successfully, but these errors were encountered: