Project

General

Profile

Feature #23047

POMS client API to override recoveries parameter for a campaign stage in the JobType

Added by Vito Di Benedetto 3 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
08/02/2019
Due date:
% Done:

100%

Estimated time:
Scope:
Internal
Experiment:
-
Stakeholders:
Duration:

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

JobType_Recovery_params.png (28.1 KB) JobType_Recovery_params.png Vito Di Benedetto, 08/02/2019 10:31 AM

History

#1 Updated by Marc Mengel 3 months 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 3 months 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 3 months ago

#4 Updated by Yuyi Guo 3 months ago

  • Assignee set to Vladimir Podstavkov

#5 Updated by Yuyi Guo 3 months ago

  • Target version set to v4_2_0

#6 Updated by Marc Mengel 2 months ago

  • Assignee changed from Vladimir Podstavkov to Marc Mengel

#7 Updated by Marc Mengel 2 months ago

Added in the following commits:

bc125b7
b4e5f8b

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 2 months ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved


Also available in: Atom PDF