Adding a check for ParentageResolved before announcement#547
Conversation
|
@sharad1126 , Can you please test this one too, and merge it at your convenience. It should not break the closor module, but anyway in the worse case scenario you have the flag in UnifiedConfig to switch it on/off. Thanks in advance. |
|
all announcements are made through |
|
@vlimant Thanks! |
|
@todor-ivanov I don't understand the use of variable Why don't you just keep ? |
|
@sharad1126 It is not always True, It is configurable through Unified config. You may put it to False there if you wish. AFAIK this is the way how Unified is configured. I didn't want to push few lines of code in the middle of the module which may start breaking things silently somewhere down the chain, and at the same time leaving you without any configurable parameter to switch it off. And it is True for the time being, because we need it. |
|
@todor-ivanov I don't think it makes sense to do that. It would have been better to probably put that as an option in the module(default being |
|
@sharad1126, Now I do not get it .....What is the difference between configure something through a module runtime parameter and through a config file parameter? |
|
@todor-ivanov it is simple that when you always want it to be true either you don't put the parameter at all or at a place where we can easily change it while running the script. Why do you want one to change a separate file(UC.json) just for a simple parameter that no one even cares about from what I can see. This should be just a run-time config and not change in a separate file. |
|
@sharad1126 I do not know who cares about it or not. But there seemed to be a pattern on how those things were configured and I followed that. The code change is much simpler and less error prone when reading a single value from a config file, than plugging another value in the parameter parser. Something more - Now, lets assume there was another module which also deals with announcement, (Which of course was clarified later in the comments, but anyway), then we would have to plug more parameters to that one too. |
|
I leave on @z4027163 to comment here and then follow up. |
|
Thanks Todor. Changes look good from my side. |
|
Now that CMSWEB upgrade is behind us, can this PR get merged such that we can mitigate the amount of StepChain workflows getting announced with incomplete parentage information? |
Fixes #545
Status
not-tested
Description
Adding a check for ParentageResolved before announcementIs it backward compatible (if not, which system it affects?)
YES
Related PRs
dmwm/WMCore#9657
External dependencies / deployment changes
No
Mention people to look at PRs
@vlimant @sharad1126 @amaltaro