Dmitry  Reva
Dmitry Reva

Reputation: 21

How to send data to running django management command?

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

Answers (0)

Related Questions