Skip to content

Commit

Permalink
Have runner main function raise systemexit on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-eq committed Nov 19, 2024
1 parent edba8b1 commit 098b7d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_ert/forward_model_runner/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,6 @@ async def _main(

if isinstance(job_status, Finish) and not job_status.success():
await let_reporters_finish(reporters)
return
raise SystemExit(1)
except asyncio.CancelledError:
await let_reporters_finish(reporters)

0 comments on commit 098b7d4

Please sign in to comment.