def cl_target(job): """Build target. Only run on client.""" if hasattr(job.backend, 'CE'): targets = [] if job.backend.CE: targets.append('CE_%s' % job.backend.CE) for site in job.backend.requirements.sites: if site: targets.append('SITE_%s' % site) targetcsv = ','.join(targets) return CommonUtil.strip_to_none(targetcsv) else: return CommonUtil.hostname()
def wn_dest_wn(): """Build dest_wn. Only run on worker node.""" return CommonUtil.hostname()
def cl_jstoolui(): """Build jstoolui. Only run on client.""" return CommonUtil.hostname()