Our previous solution that uses cronjob to queue analysis seems to be deadlocking.
We decided to extract the logic and put it outside the db as Django backend/celery job.
Add integration tests with the following requirements:
Should be able to be run manually (command can be executed in a Makefile)
Consists of creating 30 hazard_event_queue in subsequent date
Analysis queue should be able to handle the queue even with high frequency (1 minutes of periodic check even when the analysis has not been completed yet)
Record average of analysis processing time and total time.
Our previous solution that uses cronjob to queue analysis seems to be deadlocking. We decided to extract the logic and put it outside the db as Django backend/celery job.