예제 #1
0
파일: views.py 프로젝트: fpierfed/owl_web
def release_job(request, job_id):
    """
    Send the gven job_id a condor_release. Then redirect to the main index page.
    """
    # Call condor_release job_id
    err = condorutils.condor_release(job_id)

    # Redirect to the main index.
    return(HttpResponseRedirect(reverse('monitor.views.index')))
예제 #2
0
파일: owld.py 프로젝트: fpierfed/owl
    def owlapi_jobs_resume(self, job_id=None, owner=None,
                           timeout=condor.TIMEOUT):
        """
        Resume the job corresponding to the given GlobalJobId `job_id` (if not
        None) or all the jobs of the given `owner` (if not None). It is
        important to notice that `jobs_id` and `owner` are mutually exclusive
        and `job_id` has precendence. Return condor_release exit code.

        Usage
            jobs_resume(job_id=None, owner=None)

        Return
            0: success
            255: both `job_id` and `owner` are None
            254 if job_id is not a valid Condor (local or global) job ID
            otherwise: error condition (the same returned by condor_release)
        """
        return(condor.condor_release(job_id=job_id, owner=owner,
                                     timeout=timeout))
예제 #3
0
    def owlapi_jobs_resume(self,
                           job_id=None,
                           owner=None,
                           timeout=condor.TIMEOUT):
        """
        Resume the job corresponding to the given GlobalJobId `job_id` (if not
        None) or all the jobs of the given `owner` (if not None). It is
        important to notice that `jobs_id` and `owner` are mutually exclusive
        and `job_id` has precendence. Return condor_release exit code.

        Usage
            jobs_resume(job_id=None, owner=None)

        Return
            0: success
            255: both `job_id` and `owner` are None
            254 if job_id is not a valid Condor (local or global) job ID
            otherwise: error condition (the same returned by condor_release)
        """
        return (condor.condor_release(job_id=job_id,
                                      owner=owner,
                                      timeout=timeout))