Django Signals: How to signal for first entry in table -


i creating django applications(applications in django terminology) 1st application inserts data in table , 2nd application picks 1 item table, processes , remove table. continues until entries processed. when entries processed stops. start again when new entry made. consumer-producer problem.

how can use django signals start 2nd application when first entry made table?

solution problem django-celery mentioned in comment. django-celery provides task queue , process tasks without blocking request. while inserting new item if producer finds table empty, signals consumer post_save method , handler start task , stops when finished.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -