Ejemplo n.º 1
0
Archivo: task.py Proyecto: 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
Ejemplo n.º 2
0
    def get_job_status(self):
        jobstatus = 'UNKNOWN'
        jobid = self.get_jobid()

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

        return jobstatus
Ejemplo n.º 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
Ejemplo n.º 4
0
Archivo: task.py Proyecto: 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