Пример #1
0
def wn_grid_job_id(ji):
    """Build grid_job_id. Only run on worker node."""
    grid_job_id = CommonUtil.env('CREAM_JOBID') 
    if not grid_job_id: 
        grid_job_id = CommonUtil.env('EDG_WL_JOBID')
    if not grid_job_id:
        grid_job_id = CommonUtil.env('GLITE_WMS_JOBID')
    return grid_job_id
Пример #2
0
def wn_dest_ce(ji):
    """Build dest_ce. Only run on worker node."""
    dest_ce = CommonUtil.env('GLOBUS_CE')
    if not dest_ce:
        dest_ce = CommonUtil.stdout('edg-brokerinfo getCE')
    if not dest_ce:
        dest_ce = CommonUtil.stdout('glite-brokerinfo getCE')
    return CommonUtil.strip_to_none(dest_ce)
Пример #3
0
def wn_dest_site(ji):
    """Build dest_site. Only run on worker node."""
    return CommonUtil.env('SITE_NAME')
Пример #4
0
def wn_dest_ce(ji):
    """Build dest_ce. Only run on worker node."""
    dest_ce = CommonUtil.env('CE_ID')
    return CommonUtil.strip_to_none(dest_ce)