コード例 #1
0
def update_jobstatus(job_name,execute_time,execid,status):
    job_status = JobStatus()
    job_status.job_name = job_name
    job_status.execute_time = execute_time
    job_status.exec_id = execid
    job_status.status = status
    job_status.update_jobstatus()
    print '更新[%s]的执行状态[execute_time:%s][status:%s]' % (job_name,execute_time,status)
コード例 #2
0
def update_jobstatus(job_name,execute_time,execid,status=None,isUpdateStart=False):
    job_status = JobStatus()
    job_status.job_name = job_name
    job_status.execute_time = execute_time
    job_status.exec_id = execid
    if status!=None:
        job_status.status = status
        job_status.update_jobstatus()
        sysout('更新[%s]的执行状态[execute_time:%s][status:%s]' % (job_name,execute_time,status))
    elif isUpdateStart:
        job_status.update_starttime()