in submitit/core/core.py [0:0]
def __init__(self, folder: tp.Union[Path, str], job_id: str, tasks: tp.Sequence[int] = (0,)) -> None:
self._job_id = job_id
self._tasks = tuple(tasks)
self._sub_jobs: tp.Sequence["Job[R]"] = []
self._cancel_at_deletion = False
if len(tasks) > 1:
# This is a meta-Job
self._sub_jobs = [self.__class__(folder=folder, job_id=job_id, tasks=(k,)) for k in self._tasks]
self._paths = utils.JobPaths(folder, job_id=job_id, task_id=self.task_id)
self._start_time = _time.time()
self._last_status_check = self._start_time # for the "done()" method
# register for state updates with watcher
self._register_in_watcher()