Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 minute scheduling. Seems to crash after 45 minutes #505

Open
CAReeser opened this issue Jan 21, 2022 · 5 comments
Open

1 minute scheduling. Seems to crash after 45 minutes #505

CAReeser opened this issue Jan 21, 2022 · 5 comments

Comments

@CAReeser
Copy link

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
Copy link
Author

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

@gitagogaming
Copy link

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

@faulander
Copy link

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

@SijmenHuizenga
Copy link
Collaborator

SijmenHuizenga commented Apr 8, 2022

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:

def every(self, interval: int = 1) -> "Job":

@jcphlux
Copy link

jcphlux commented Jun 22, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants