separate twitter operations into own tasks
mo-mughrabi opened this issue · 0 comments
mo-mughrabi commented
in provision_orders() task, we are listing and executing each task depending on its func..
this needs to be enhanced, each func should have its own celery task and when provision_orders() runs, it should change the order status to "executing" and sends it off to sub task..
the sub task in return, should query the order, try to execute and when completed it should change status to completed, it also should be able to handle twitter exception (Rate Limit), when that is raised, the task status should be changed to Retry and task placed for retry after 1 hour
other exceptions should normally flag is failed and exit..