F
F
fantom00052015-11-17 17:36:12
Django
fantom0005, 2015-11-17 17:36:12

How to run a function after a certain time in a Django project using UWSGI?

Hello.
A Django project needs to run a certain function every 2 hours. I heard that this task is solved through plugins for UWSGI that implement the Task Manager. But I didn't find a definite solution. What do you advise?
Thank you)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Klimenko, 2015-11-17
@fantom0005

for such a simple case https://docs.djangoproject.com/en/1.8/howto/custom...
just write a command in the django itself, and run it with a crontab, a proven wonderful tool.
Putting separate solutions, in such a simple case, is not required at all, and will only be an overhead.

D
devel787, 2015-11-19
@devel787

> I heard that this task is solved through plugins for UWSGI that implement the Task manager
https://lincolnloop.com/blog/uwsgi-swiss-army-knife/ ('Task Queuing' part)
+
uwsgi-docs.readthedocs.org /en/latest/Cron.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question