예제 #1
0
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()
예제 #2
0
def wn_dest_wn():
    """Build dest_wn. Only run on worker node."""
    return CommonUtil.hostname()
예제 #3
0
def cl_jstoolui():
    """Build jstoolui. Only run on client."""
    return CommonUtil.hostname()