in submitit/local/local.py [0:0]
def get_info(self, mode: str = "force") -> Dict[str, str]: # pylint: disable=unused-argument
"""Returns information about the job as a dict."""
assert self._process is not None
poll = self._process.poll()
if poll is None:
state = "RUNNING"
elif poll < 0:
state = "INTERRUPTED"
else:
state = "FINISHED"
return {"jobState": state}