-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide Campaign names via job classads #10914
Comments
Thanks a lot @amaltaro |
In CMS Monitoring classad conversion code-base, For example, for this reuest name : Another example is for : First one is step chain and second one is task chain example. In WMCore repo, I found that classadds are set in WMCore/BossAir/Plugins/SimpleCondorPlugin.py. If that is the correct place to make necessary changes, I can put a new classadd called Although, |
@mrceyhun Hi Ceyhun, thanks for looking into this. Using regex on the SubTaskName will not be 100% reliable, so I'd avoid it. |
@amaltaro , I want to stop you right here, the comment about The right way to get this implemented is to actually read the PrepID from the agent database is not applicable to monitoring tasks. At monitoring level nobody should read from any database, i.e. the monitoring task is to use provided data from MONIT. If PrepID is not properly provided to MONIT it is not issue with monitoring and the right way is to fix the place which should provide this info to MONIT. If I read correctly the issue, the PrepID should be provided in job classads and then monitoring can read it. Is this is the case? |
@vkuznet I am planning to contribute to WMCore and WMCore will provide this new classadd, it will not be implemented in cms-htcondor-es side. |
Whoever who will work on this issue need the following information:
I think when we'll know the two steps above it will be trivial task to modify these codebase to add new attributes. |
@amaltaro Do I understand correctly that :
And for campaignType, do we still use the request name for this, or do we use the prepID? I assume this is the one that would probably read a dictionary with all the matching options from a config.py |
No, campaign name and prep ID are two different things. for StepChain, I think we will want to have a comma separated list of campaigns(?) For the campaign type, I honestly don't feel comfortable adding that code dependent on random string parsing to guess what type it is, as it's been proven over the past few years that it does not work. Unless we come up with a more solid plan, I would be in favor in leaving that for some point in the future in its own github issue. |
@amaltaro But even for stepChain, I only see the am I missing something? What seems to change is the acquisitionEra. E.g.: In the example that @mrceyhun gave: I do see:
|
Oh, that changes the whole development! It looks like This comment also gives a hint of how we currently deal with campaign in the workflows: Before we complicate this development, I think we will have to reach to CompOps to learn how they would like to see campaign information in MonIT for StepChain workflows. Is it: I would say b), but still, how people are going to use it in MonIT? I fail to see a straight forward way to match campaigns and create plots for that case. @khurtado |
@amaltaro I have converted this issue into a meta-issue. This meta-issue has now 4 issues, 3 related to campaign names and 1 for the type, which we can leave for later. I have added the first issue (RERECO) as part of Q3. |
@khurtado Kenyi, I was going to suggest to close this meta-issue, but I see that the campaign type is still to be implemented. Given that we don't have any clear algorithm for the campaign type, should we further refactor this ticket to be only about the campaign name; and create a new meta-issue for the "campaign type"? I would go with a meta-issue because apparently we will have to discuss and agree on an algorithm for the campaign type definition (1 issue); while the implementation of the campaign type will be at least another ticket (perhaps 2, one for stepchain and one for other request types). What do you think? One last comment on this campaign name meta-issue. Do we have a ticket for updating the condor ES script to start consuming the new classad, whenever it is available (as there will be a transition phase where jobs will provide or not this classad). If not, then I fear we need to create it and add it still to Q3. |
@amaltaro Yes, I think that would be the best. |
@amaltaro I have made I also refactored this meta-issue to remove the campaign type from it. |
@amaltaro Given that the changes on WMCore are already merged and that dmwm/cms-htcondor-es#214 is only pending 1 more approval (out of 3), I am going to go ahead and close this ticket, as I do not expect any more work on it rather than just waiting for that PR on monit to be merged. Feel free to re-open it if you think there is anything still missing. |
Sounds good to me. Thanks Kenyi! |
Impact of the new feature
WMAgent
Is your feature request related to a problem? Please describe.
As recently discussed over mattermost, this script:
https://github.com/dmwm/cms-htcondor-es/blob/vm-legacy/src/htcondor_es/convert_to_json.py
has some logic embedded in order to figure out the campaign name out of the request name.
Instead of parsing the request name, we should actually define new classads and provide the right information in a job-basis.
Describe the solution you'd like
Complete the following tasks:
For Campaign names, support it with RERECO, TaskChain and StepChain workflows:
Describe alternatives you've considered
None
Additional context
The text was updated successfully, but these errors were encountered: