POMS client API to override recoveries parameter for a campaign stage in the JobType
In some circumstances it is useful for project-py to be able to override some parameters for a campaign stage recovery submission.
They are parameters in Recovery Launches from this picture:
we would like to have an API to modify Recovery Launches parameters.
If it is possible, new parameter elements that matches existing one should replace them.
Otherwise new parameter elements can just be appended to the existing ones.
Somehow this is similar to Feature #22959
#3 Updated by Vito Di Benedetto 10 months ago
In develop branch poms_client has 'job_type_edit' https://cdcvs.fnal.gov/redmine/projects/prod_mgmt_db/repository/revisions/develop/entry/poms_client/python/poms_client.py#L440
Can this be used for what I need?
#7 Updated by Marc Mengel 9 months ago
Added in the following commits:
Passes simple smoke test.
Python 3.6.3 (default, May 31 2019, 13:05:43) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import poms_client >>> poms_client.modify_job_type_recoveries(728,[["consumed_status", [["-Oenv_pass.HYPOT_FAIL_RATE=", "0.0"],["--debug=","1"]]]],test='dev') ([['consumed_status', [['-Oenv_pass.HYPOT_FAIL_RATE=', '0.0'], ['--debug=', '1']]]], 200, 728) >>>
Note that it returns the merge of the existing and requested options.