Skip to content
Snippets Groups Projects
Commit 68b3bc02 authored by Rebecca Ewing's avatar Rebecca Ewing
Browse files

lloidhandler: define topic_prefix for offline case

remove job_name and svdbin as self attributes of EyeCandy
parent 25a78798
No related branches found
No related tags found
1 merge request!283lloidhandler: also define topic_prefix for offline case
Pipeline #444014 passed with warnings
......@@ -138,14 +138,17 @@ class EyeCandy(object):
self.analysis = analysis_tag
if job_tag:
self.svdbin = job_tag.split('_')[0]
self.job_name = '_'.join(job_tag.split('_')[1:])
self.tag = [self.svdbin, self.job_name]
if 'noninj' in self.job_name: self.topic_prefix = ''
else: self.topic_prefix = 'inj_'
# online jobs have job tag of the form
# {SVDBIN}_inj_{TAG} or {SVDBIN}_noninj
self.tag = [job_tag.split('_')[0], '_'.join(job_tag.split('_')[1:])]
if 'noninj' in self.tag[1]:
self.topic_prefix = ''
else:
self.topic_prefix = 'inj_'
else:
self.job_name = None
self.tag = None
# offline jobs dont use job tags
self.tag = []
self.topic_prefix = ''
self.node_id = node_id
self.gate_history = segmentstracker.gate_history
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment