Skip to content

Commit

Permalink
Merge pull request #1604 from pyiron/interactive_aborted
Browse files Browse the repository at this point in the history
Interactive: Set status to aborted when job failed
  • Loading branch information
jan-janssen authored Aug 19, 2024
2 parents 8b3ee9e + 7c5edd6 commit d1a247c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyiron_base/jobs/job/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,10 @@ def __enter__(self):
return self._job

def __exit__(self, exc_type, exc_val, exc_tb):
return self._job.interactive_close()
job_status = self._job.status.string
job_closed = self._job.interactive_close()
self._job.status.string = job_status
return job_closed

def __getattr__(self, attr):
error_message = (
Expand Down

0 comments on commit d1a247c

Please sign in to comment.