fractal-analytics-platform / fractal-containers

Containers for testing Fractal
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Prevent infinite loop #30

Closed tcompa closed 10 months ago

tcompa commented 10 months ago

If something goes wrong, we'll get this infinite loop

fractal-demos   | 
fractal-demos   | usage: fractal job show [-h] [--do-not-separate-logs] project_id job_id
fractal-demos   | fractal job show: error: the following arguments are required: job_id

repeating forever. We should add an additional check on the exit code of the command used inside the while loop, and break the loop if the command failed.