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

Add flag so we can run in one-shot mode from cron #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mvanbaak
Copy link

@mvanbaak mvanbaak commented Apr 2, 2018

Personally, I prefer to schedule this script with cron, so it runs every 10 minutes.
The while True is nice and all, but if something goes wrong the script terminates.
One can of course 'fix' this by running it with supervisord or systemd. But cron is also an option.

This patch adds the command line option ```--cron``
When used, the script will do one run of torrent info collection, send it to influxdb, and exit.

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.

1 participant