make db state changes atomic on job start & job destroy
The controller and django can both change the job state, especially when it is in the WAITING state (django may delete the job and the controller may start the job). To prevent any inconsistency, we must ensure that these transitions are made atomically.
Please register or sign in to comment