Skip to content

Commit

Permalink
Merge pull request #1631 from pyiron/interactive_failed_only
Browse files Browse the repository at this point in the history
Only reset the job status for failed interactive jobs
  • Loading branch information
jan-janssen authored Aug 30, 2024
2 parents c4c1104 + 60ebccd commit 77d2bdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyiron_base/jobs/job/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ def __enter__(self):
def __exit__(self, exc_type, exc_val, exc_tb):
job_status = self._job.status.string
job_closed = self._job.interactive_close()
self._job.status.string = job_status
if job_status in ["aborted"]:
self._job.status.string = job_status
return job_closed

def __getattr__(self, attr):
Expand Down

0 comments on commit 77d2bdc

Please sign in to comment.