Exemplo n.º 1
0
        # experiment metrics.  RSMAgent_TS then forwards this file
        # to the Axeda remote system monitoring server.
        primary_key = open("primary.key").readline()
        primary_key = primary_key.split(" = ")
        primary_key = primary_key[1]
        rsm_message = jobserver.createRSMExperimentMetrics(primary_key)
        printtime("jobserver.createRSMExperimentMetrics returned: "+str(rsm_message))
    except:
        printtime("RSM createExperimentMetrics.py failed")

    # 
    # Wait for final files to be written before proceeding #
    # 
    # copy explog_final.txt into report directory
    try:
        if file_exists(explogfinalfilepath, block=300, delay=2):
            shutil.copy(explogfinalfilepath, ".")
        else:
            printtime("WARN: Cannot copy %s: doesn't exist" % explogfinalfilepath)
    except:
        printtime(traceback.format_exc())

    # 
    # Write checksum_status.txt to raw data directory      #
    # 
    if is_single:
        raw_return_code_file = os.path.join(env['SIGPROC_RESULTS'], "analysis_return_code.txt")
    elif is_composite:
        raw_return_code_file = os.path.join(env['BASECALLER_RESULTS'], "composite_return_code.txt")

    try:
Exemplo n.º 2
0
        # to the Axeda remote system monitoring server.
        primary_key = open("primary.key").readline()
        primary_key = primary_key.split(" = ")
        primary_key = primary_key[1]
        rsm_message = jobserver.createRSMExperimentMetrics(primary_key)
        printtime("jobserver.createRSMExperimentMetrics returned: "+str(rsm_message))
    except:
        printtime("RSM createExperimentMetrics.py failed")


    ########################################################
    # Wait for final files to be written before proceeding #
    ########################################################
    #copy explog_final.txt into report directory
    try:
        if file_exists(explogfinalfilepath, block = 300, delay = 2):
            shutil.copy(explogfinalfilepath, ".")
        else:
            printtime("WARN: Cannot copy %s: doesn't exist" % explogfinalfilepath)
    except:
        printtime(traceback.format_exc())



    ########################################################
    # Write checksum_status.txt to raw data directory      #
    ########################################################
    if is_single:
        raw_return_code_file = os.path.join(env['SIGPROC_RESULTS'],"analysis_return_code.txt")
    elif is_composite:
        raw_return_code_file = os.path.join(env['BASECALLER_RESULTS'],"composite_return_code.txt")