I have a custom django management command that is constantly running through the supervisor (keep alive)
I need under certain circumstances (for example, a signal in the project, or a change in the database) the django management process reacted to these changes.
Tried looking for something similar but can't seem to find a simple implementation.
UPD: In the management command I start the stream process to the twitter API to track new tweets for the tags from django database. When adding a new tag to the database, I want to restart the stream connection.
source https://stackoverflow.com/questions/70160705/how-to-send-data-to-running-django-management-command
Comments
Post a Comment