L
L
lockdog2020-01-10 17:34:35
Django
lockdog, 2020-01-10 17:34:35

How to execute a function with a given period in Django?

Good afternoon,
I want the django server to activate the execution of a task (function) upon the arrival of a request from the client and also stop it on another request. The function must have access to the database. Multiple clients can connect to the server, and each must be able to activate its copy of the task independently of the others.
How to do it right?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SexyHair, 2020-01-10
@lockdog

Celery

V
Vladimir Korotenko, 2020-01-10
@firedragon

cron

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question