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

net: Add --no-timeout option to run process_submissions continuously #323

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

XePeleato
Copy link
Contributor

Hi! I am not sure why process_submissions.py exits after one day, but I'd need it to run forever, as I'm using it to power my astrometry.net instance.

I've added an option which hopefully makes it run indefinitely.

Current behavior makes it exit after one day. Adding this option avoids that
@dstndstn
Copy link
Owner

Hi,

Restarting daily allows it to clean up any open files or other resources that might not get cleaned up correctly in all failure cases. In the nova.astrometry.net service, the process_submissions.py script is run as a systemd service, with a restart flag.
https://github.com/dstndstn/astrometry.net/blob/main/net/nova-jobs.service#L13

But this is a good change -- thank you :)

@dstndstn dstndstn merged commit 5338a7b into dstndstn:main Dec 17, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants