Combine campaign/campaign_stage names for POMS_CAMPAIGN_NAME for monitoring
Now that campaign stage names are unique only within a campaign, we should include both the campaign name and campaign stage name as POMS_CAMPAIGN_NAME passed into jobsub.
...unless they're identical, or share a prefix in which case we should prune a bit.
#1 Updated by Marc Mengel over 1 year ago
Tested in development. Fixed in:
- cname = cs.name + # isssue #20990 + if cs.name == cs.campaign_obj.name: + cname = cs.name + elif cs.name[:len(cs.campaign_obj.name)] == cs.campaign_obj.name: + cname = "%s::%s" % (cs.campaign_obj.name , cs.name[len(cs.campaign_obj_name):]) + else: + cname = "%s::%s" % (cs.campaign_obj.name, cs.name) +