DailyUpdate's status is compute from it's units status.
When asking for the status of a daily update while importing it (typically DailyUpdateTribunalCommerce.current.status ActiveRecord returns nil.
This may be caused by units being imported in concurrent transactions. Tables may somehow be locked.
If the issue is related to a database transaction lock it might be a solution to set the 'LOADING' status for the unit import before entering the transaction.
DailyUpdate's status is compute from it's units status. When asking for the status of a daily update while importing it (typically
DailyUpdateTribunalCommerce.current.status
ActiveRecord returnsnil
.This may be caused by units being imported in concurrent transactions. Tables may somehow be locked.