Verificaciones periodicas Django

Asked

Viewed 32 times

0

How could I create a loop, thread or anything that my webapp periodically checks every 5 minutes the database and deletes entries that are "expired".

I did some research, but I couldn’t find anything specific. I even found something saying that you should create another program that accesses an app api to make this communication. I don’t know if this is the most efficient option or "professional".

Thank you all.

1 answer

1


What you want to do, could be easily achieved through the Celery, more specifically of Periodic Tasks. In the documentation you will find examples with Django.

  • Our Very Good. Thanks it seems that really this solves the problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.