Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: running parallel bundle submits no longer clobbers config file (#…
…444) Fixes: #386 Problem: The customer reports that the config file can get clobbered when running many bundle submit commands in parallel. When clobbered, the config file will only contain the job-id for the a submitted job; all of the farm, queue, etc information will be gone. Solution: A standard pattern for concurrent file modification is to write changes to a temp file, and then move that temp file overtop of the config file via a filesystem rename operation. The rename is atomic, so that prevents the file content from being clobbered. Signed-off-by: Daniel Neilson <[email protected]>
- Loading branch information