Skip to content

Commit

Permalink
oSPARC: slight improvement to check_simulation()'s logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Nov 8, 2023
1 parent 34db50a commit 64b1e9b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/osparc/osparc.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,10 @@ def check_simulation(data):
solver_version = data["solver"]["version"]
status = solvers_api.inspect_job(solver_name, solver_version, job_id)

if status.state in {"SUCCESS", "FAILED"}:
# The simulation has completed, but was it successful?

if status.state == "FAILED":
raise SimulationException("the simulation failed")
if status.state == "FAILED":
raise SimulationException("the simulation failed")

if status.state == "SUCCESS":
# Retrieve the simulation job outputs.

try:
Expand Down

0 comments on commit 64b1e9b

Please sign in to comment.