示例#1
0
文件: task.py 项目: VUIIS/api
 def get_job_status(self):
     jobstatus = 'UNKNOWN'
     jobid = self.get_jobid()
     
     if jobid != '' and jobid != '0':
         jobstatus = cluster.job_status(jobid)
    
     return jobstatus
示例#2
0
文件: task.py 项目: VUMC-VMAC/api
    def get_job_status(self):
        jobstatus = 'UNKNOWN'
        jobid = self.get_jobid()

        if jobid != '' and jobid != '0':
            jobstatus = cluster.job_status(jobid)

        return jobstatus
示例#3
0
    def get_job_status(self):
        """
        Get the status of a job given its jobid as assigned by the scheduler

        :param jobid: job id assigned by the scheduler
        :return: string from call to cluster.job_status or UNKNOWN.

        """
        jobstatus = 'UNKNOWN'
        jobid = self.get_jobid()

        if jobid and jobid != '0':
            jobstatus = cluster.job_status(jobid)

        return jobstatus
示例#4
0
文件: task.py 项目: Raab70/dax
    def get_job_status(self, jobid=None):
        """
        Get the status of a job given its jobid as assigned by the scheduler

        :param jobid: job id assigned by the scheduler
        :return: string from call to cluster.job_status or UNKNOWN.

        """
        jobstatus = "UNKNOWN"
        if jobid == None:
            jobid = self.get_jobid()

        if jobid != "" and jobid != "0":
            jobstatus = cluster.job_status(jobid)

        return jobstatus