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
Post a Comment