Project

General

Profile

Idea #9328

Updated by Peter Amstutz almost 8 years ago

Containers can go from "Locked" to "Queued" state if something fails before the container started actually running, or if the dispatcher loses track of the container and believes it is no longer running. 

 A Queued container can then be re-locked by the same dispatcher, which would initiate a second crunch-run process, which could race the first crunch-run process and lead to confusing results as both crunch-run processes have the ability to update the container record. 

 The proposed solution is to introduce an additional API token which will be issued when the container is Locked.    This will be the API token that the crunch-run process will use to update the record.    If the container is unlocked for any reason, the API token will be revoked, and as a result the crunch-run process will be unable to modify the container record and fail; the new crunch-run process will be able to take ownership of the container record safely with a new API token. 

Back