Open divergentdave opened 1 year ago
What should we do? Probably exit with an error?
I think exiting with an error would be good in the case of schedule_recurring_tasks_if_needed()
, since that only has to happen once at startup IIUC. The worker task should otherwise keep running if it gets errors during steady-state operation, but I think we're okay on that front from a quick skim.
I brought divviup-api up before the database schema was ready, and the following panic happened in the queue worker task.
This was likely from the
schedule_recurring_tasks_if_needed()
call. The process continued to run, but asynchronous tasks did not make any progress.