Z
Z
zlodiak2019-04-21 14:47:40
Python
zlodiak, 2019-04-21 14:47:40

How to run a cron parser?

There is a parser written using the flask framework. Can you please tell me how to run it periodically using cron?
On stackoverflow, it is advised to use the BackgroundScheduler package for such purposes. But I would like to use exactly cron
. The problem is that after the command is launched, the
flask run
parser works, but the next time you have to somehow stop the application (if this is even possible).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2019-04-21
@zlodiak

Use Flask-Script for this.
You are clearly doing something wrong...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question