Example #1
0
File: lsf.py Project: atztogo/cogue
    def __init__(
        self,
        script=None,
        shell=None,
        jobname=None,
        q=None,
        A="p=20:t=1:c=1:m=3072M",
        W="24:00",
        stdout=None,
        stderr=None,
    ):

        JobBase.__init__(self)

        if script is None:
            print("Queue script not found.")
            sys.exit(1)
        else:
            self._script = script

        if q is None:
            print("Queue name must be set.")
            sys.exit(1)
        else:
            self._q = q

        if shell is None:
            self._shell = "/bin/bash"
        else:
            self._shell = shell

        if jobname is None:
            self._jobname = "cogue-job"
        else:
            self._jobname = jobname

        self._A = A
        self._W = W
        self._stdout = stdout
        self._stderr = stderr

        self._status = ""
Example #2
0
    def __init__(self,
                 script=None,
                 shell=None,
                 cwd=True,
                 jobname=None,
                 q=None,
                 l=None,
                 pe=None,
                 stdout=None,
                 stderr=None):

        JobBase.__init__(self)

        if not script:
            print("Queue script not found.")
            sys.exit(1)
        else:
            self._script = script

        if shell is None:
            self._shell = "/bin/bash"
        else:
            self._shell = shell

        if jobname is None:
            self._jobname = "cogue-job"
        else:
            self._jobname = jobname

        self._pe = pe
        self._q = q
        self._l = l

        self._cwd = cwd
        self._stdout = stdout
        self._stderr = stderr

        self._status = ""