

def _was_cancelled(self, job_id):
    try:
        return self._job_directory(job_id).load_metadata(JOB_FILE_CANCELLED, None)
    except Exception:
        log.info(('Failed to determine if job with id %s was cancelled, assuming no.' % self))
        return False

dataset/ETHPy150Open galaxyproject/pulsar/pulsar/managers/base/directory.py DirectoryBaseManager._was_cancelled/VarMisuse@44/87 `job_id`->`self`