Skip to content

Control updates of JEC/JER payload cache

Pieter David requested to merge piedavid/bamboo:controljetdbwrites into master

Fixes #27 (closed) and #29 (closed)

As mentioned in https://gitlab.cern.ch/cp3-cms/bamboo/issues/29#note_2704281 , fetching payloads on demand from the worker jobs is not an option, so with the changes in this merge request that would be forbidden (if all goes well it should raise a very nice exception with how to solve the problem). I did leave the locking code in, in case bambooRun is run in two sessions on the same machine, and because I needed to raise the "file locked, cannot update" exception from the same places anyway.

To make it easier to test-run locally (in sequential mode), and make sure all txt files are there, I did add a --maxFiles option, such that can be done quickly without changing any yml files.

Merge request reports