Reputation: 21
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.
Upvotes: 0
Views: 345