Feature #23047
POMS client API to override recoveries parameter for a campaign stage in the JobType
100%
Description
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
History
#1 Updated by Marc Mengel over 1 year ago
Hm... we used to have "campaign_definition_edit" in poms_client, which called the backend of the form you're showing... Did we clean it out of the client for some reason?
#2 Updated by Marc Mengel over 1 year ago
So we have a few options here. we can rebuild the old campaign_definion_edit functionality; we can make a specific call to update recovery parameters; or
we can make the client pull the whole .ini file, change the recovery bits, and re-upload it...
#3 Updated by Vito Di Benedetto over 1 year 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?
#4 Updated by Yuyi Guo over 1 year ago
- Assignee set to Vladimir Podstavkov
#5 Updated by Yuyi Guo over 1 year ago
- Target version set to v4_2_0
#6 Updated by Marc Mengel over 1 year ago
- Assignee changed from Vladimir Podstavkov to Marc Mengel
#7 Updated by Marc Mengel over 1 year 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.
#8 Updated by Marc Mengel over 1 year ago
- % Done changed from 0 to 100
- Status changed from New to Resolved
#9 Updated by Marc Mengel 25 days ago
- Status changed from Resolved to Closed