schedule icon indicating copy to clipboard operation
schedule copied to clipboard

1 minute scheduling. Seems to crash after 45 minutes

Open CAReeser opened this issue 3 years ago • 5 comments

Is it OK to use this format? schedule.every().minute.do(updateObservingConditionsCSV)

rather than: schedule.every(1).minutes.do(updateObservingConditionsCSV)

If not ok, might want to update the docs. I have the thread crashing after 45 minutes and I am trying to localize the issue.

`

CAReeser avatar Jan 21 '22 00:01 CAReeser

BTW, this is a great program. Simple to implement and very useful.

CAReeser avatar Jan 21 '22 00:01 CAReeser

Interesting, I have been having a similar issue that I've seemed to narrow down to this as well, although mine is set to every 5 minutes

gitagogaming avatar Feb 09 '22 20:02 gitagogaming

I do schedule.every().minute.do(updateObservingConditionsCSV) since i started using schedule, so yes - this works.

faulander avatar Apr 04 '22 10:04 faulander

Were you able to find the problem? If not, is there an error when the crash happens?

For future reference, schedule.every() is exactly the same as schedule.every(1). The default param is 1:

https://github.com/dbader/schedule/blob/ed7d21961242f86342da240ee1d089c1cee37de6/schedule/init.py#L161

SijmenHuizenga avatar Apr 08 '22 11:04 SijmenHuizenga

I was having similar issues and it ended up being a memory leak issue. I was able to correct it by ether forcing garbage collection or by call del <var_name> to remove variables from memory.

jcphlux avatar Jun 22 '22 20:06 jcphlux