Hi. I've got some code (basically web scrape + store in MySQL db) that can take upwards of 10-20 minutes to run. Because of this time I'm finding that it times out when run in a Flask web app. I am therefore thinking an always-on task might be appropriate.
If I run my py script as an always on task, will it only truly be 'always on' if there's an infinite loop? Or, once the script has finished executing, will it just re-start from the top?
Basically, I want my script to run (10-20+ minutes) without timing out, and then stop/exit. I don't want it to repeat.
Is this a reasonable use case for an always on task? Can I execute the code once in this manner, without it repeating?