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
Currently, this is not supported in the provided Dockerfile.
The easiest (and hackiest) way to schedule it is adding --restart=always to your docker run command. Every time the checker runs, it will exit shortly afterwards causing the container to exit. The --restart=always will make Docker restart the container after a little bit, though that delay is exponential according to the restart policy. I'm using this, and it gives ~1min between runs.
Alternate ways that would require more work (but are more "correct"):
Add a crontab into the dockerfile to schedule the running of the checker
Make the entrypoint to the container a shell script that runs the checker in an infinite loop with a delay
Add an infinite loop with delay in the python code itself
I am able to get the docker image to run this one time (results = NONE), is there a way to get this to run on a schedule?
The text was updated successfully, but these errors were encountered: