admin管理员组文章数量:1336568
I want to create a critical section in django provide controlled section. One of this is in one of the django channels consumers handling the websocket connections and the other is in a cron process implemented with cron tab, not celery.
I would like these both critical sections to have a lock. How would I implement this in django. I know there is python Value,Semaphores, Mutexs but I can not pass the Value to cron job. So Can I use some sort of a file lock. Maybe interprocess communication lock, if that exists.
Anythoughs on how to archive this in Django
本文标签: pythonCuncurrencymutexsemaphores on django and a cron jobStack Overflow
版权声明:本文标题:python - Cuncurrency, mutex, semaphores on django and a cron job - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742404252a2468495.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论