# msgStr = " No Good {0}".format(tmpOut) # tmpLog.debug(msgStr) # sys.exit(1) # check status to actually trigger transfer # get the files with the group_id and print out msgStr = "Original dummy_transfer_id = {}".format( preparatorCore.get_dummy_transfer_id()) tmpLog.debug(msgStr) # modify dummy_transfer_id from groups of input files for key in groups: preparatorCore.set_dummy_transfer_id_testing(key) msgStr = "Revised dummy_transfer_id = {}".format( preparatorCore.get_dummy_transfer_id()) tmpLog.debug(msgStr) files = proxy.get_files_with_group_id( preparatorCore.get_dummy_transfer_id()) tmpLog.debug( "proxy.get_files_with_group_id(preparatorCore.get_dummy_transfer_id()) = {0}" .format(files)) files = preparatorCore.dbInterface.get_files_with_group_id( preparatorCore.get_dummy_transfer_id()) tmpLog.debug( "preparatorCore.dbInterface.get_files_with_group_id(preparatorCore.get_dummy_transfer_id()) = {0}" .format(files)) msgStr = "checking status for transfer and perhaps ultimately triggering the transfer" tmpLog.debug(msgStr) tmpStat, tmpOut = preparatorCore.check_stage_in_status(jobSpec) if tmpStat: msgStr = " OK" tmpLog.debug(msgStr) elif tmpStat == None:
tmpStat, tmpOut = preparatorCore.trigger_preparation(jobSpec) if tmpStat: msgStr = " OK " tmpLog.debug(msgStr) elif tmpStat == None: msgStr = " Temporary failure NG {0}".format(tmpOut) tmpLog.debug(msgStr) elif not tmpStat: msgStr = " NG {0}".format(tmpOut) tmpLog.debug(msgStr) sys.exit(1) print # check status to actually trigger transfer # get the files with the group_id and print out msgStr = "dummy_transfer_id = {}".format(preparatorCore.get_dummy_transfer_id()) files = proxy.get_files_with_group_id(preparatorCore.get_dummy_transfer_id()) files = preparatorCore.dbInterface.get_files_with_group_id(preparatorCore.get_dummy_transfer_id()) msgStr = "checking status for transfer and perhaps ultimately triggering the transfer" tmpLog.debug(msgStr) tmpStat, tmpOut = preparatorCore.check_status(jobSpec) if tmpStat: msgStr = " OK" tmpLog.debug(msgStr) elif tmpStat == None: msgStr = " Temporary failure NG {0}".format(tmpOut) tmpLog.debug(msgStr) elif not tmpStat: msgStr = " NG {0}".format(tmpOut) tmpLog.debug(msgStr) # sleep for 10 minutes 1 second
tmpLog.debug(msgStr) tmpStat, tmpOut = stagerCore.trigger_stage_out(jobSpec) if tmpStat: msgStr = " OK " tmpLog.debug(msgStr) elif tmpStat == None: msgStr = " Temporary failure NG {0}".format(tmpOut) tmpLog.debug(msgStr) elif not tmpStat: msgStr = " NG {0}".format(tmpOut) tmpLog.debug(msgStr) sys.exit(1) print # get the files with the group_id and print out msgStr = "dummy_transfer_id = {}".format(stagerCore.get_dummy_transfer_id()) files = proxy.get_files_with_group_id(stagerCore.get_dummy_transfer_id()) files = stagerCore.dbInterface.get_files_with_group_id(stagerCore.get_dummy_transfer_id()) msgStr = "checking status for transfer and perhaps ultimately triggering the transfer" tmpLog.debug(msgStr) tmpStat, tmpOut = stagerCore.check_status(jobSpec) if tmpStat: msgStr = " OK" tmpLog.debug(msgStr) elif tmpStat == None: msgStr = " Temporary failure NG {0}".format(tmpOut) tmpLog.debug(msgStr) elif not tmpStat: msgStr = " NG {0}".format(tmpOut) tmpLog.debug(msgStr) # sleep for 10 minutes 1 second
tmpStat, tmpOut = stagerCore.trigger_stage_out(jobSpec) if tmpStat: msgStr = " OK " tmpLog.debug(msgStr) elif tmpStat == None: msgStr = " Temporary failure NG {0}".format(tmpOut) tmpLog.debug(msgStr) elif not tmpStat: msgStr = " NG {0}".format(tmpOut) tmpLog.debug(msgStr) sys.exit(1) print # get the files with the group_id and print out msgStr = "dummy_transfer_id = {}".format( stagerCore.get_dummy_transfer_id()) files = proxy.get_files_with_group_id(stagerCore.get_dummy_transfer_id()) files = stagerCore.dbInterface.get_files_with_group_id( stagerCore.get_dummy_transfer_id()) msgStr = "checking status for transfer and perhaps ultimately triggering the transfer" tmpLog.debug(msgStr) tmpStat, tmpOut = stagerCore.check_stage_out_status(jobSpec) if tmpStat: msgStr = " OK" tmpLog.debug(msgStr) elif tmpStat == None: msgStr = " Temporary failure NG {0}".format(tmpOut) tmpLog.debug(msgStr) elif not tmpStat: msgStr = " NG {0}".format(tmpOut) tmpLog.debug(msgStr)