0

I’m looking to implement a script that calls a web API at regular intervals (e.g. every hour). I’m using Flask as my server.

Should I use the Cron framework, or is it better to use Python’s schedule function to run the script?

asked May 23, 2018 at 13:59

1 Answer 1

3

Cron, otherwise you'll need something extra to make sure your python script is always running. Of course, this counts for cron too.

answered May 23, 2018 at 14:04
2
  • How would one initiate a scheduled task with Cron, other than manually starting the Cron schedule from the command line? Commented May 23, 2018 at 15:17
  • That's the init systems job, good old sysvinit or bad new systemd. Commented May 23, 2018 at 20:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.