Beispiel #1
0
def Cancel(config, jobid):
    """
    Cancel a job running at an LSF host with ``bkill``.

    :param str config: path to arc.conf
    :param str grami_file: path to grami file
    :return: ``True`` if successfully cancelled, else ``False``
    :rtype: :py:obj:`bool`
    """

    configure(config, set_lsf)
    return cancel('lsf', jobid)
Beispiel #2
0
def Cancel(config, jobid):
    """
    Cancel a job running at a SLURM host with ``scancel``.

    :param str config: path to arc.conf
    :param str jobid: local job ID
    :return: ``True`` if successfully cancelled, else ``False``
    :rtype: :py:obj:`bool`
    """

    verify_job_id(jobid)
    configure(config, set_slurm)
    return cancel("slurm", jobid)
Beispiel #3
0
def Cancel(config, jobid):
    """
    Cancel a job running at a SLURM host with ``scancel``.

    :param str config: path to arc.conf
    :param str jobid: local job ID
    :return: ``True`` if successfully cancelled, else ``False``
    :rtype: :py:obj:`bool`
    """

    verify_job_id(jobid)
    configure(config, set_slurm)
    cmd = '%s/%s' % (Config.slurm_bin_path, 'oardel')
    return cancel([cmd, jobid], jobid)