Django pipes for asynchronous periodic tasks

I found that most of the Django feeds docs are about WebSockets. But I want to use them differently, and I believe that this is possible.

How to run a periodic async task using Django feeds? For example, I want to check the temperature on a website (via the API) every 15 seconds, and I need a notification when it hit> 20.

It also means that this task will take a long time (maybe even 3 months), is Django able to hold consumers for a long time?

Thank.

+4
source share

Source: https://habr.com/ru/post/1671061/


All Articles