sbsdev / mdr2

Production Management Tool for DAISY Talking Books
GNU Affero General Public License v3.0
0 stars 0 forks source link

Race condition on recorded notification from abacus #65

Open egli opened 8 years ago

egli commented 8 years ago

When receiving a recorded notification from abacus we check if the status is "structured" and if yes start the encoding process. However the status is only changed once the encoding is finished. This can take several minutes, i.e. the window is wide open for a race condition. It would probably make sense to use a similar mechanism as when repairing, i.e. store an intermediate state in the cache and invalidate it once the encoding is finished.