Open IgnacioHeredia opened 11 months ago
Errors are not correctly piped. An error in the module code that prevents deepaas from launching is piped to stout, not sterr.
stout
sterr
raise Exception('some error')
deepaas-run
stout:
... 2023-07-26 14:05:38.595 149055 ERROR deepaas File "/home/iheredia/ignacio/projects/deephdc/apps/demo_app/demo_app/api.py", line 103, in get_predict_args 2023-07-26 14:05:38.595 149055 ERROR deepaas raise Exception('some error') 2023-07-26 14:05:38.595 149055 ERROR deepaas Exception: some error 2023-07-26 14:05:38.595 149055 ERROR deepaas
sterr:
Two things might occur:
Exception
get_*_args
ERROR
In both cases, behaviour is incorrect.
Error message is in sterr. deepaas should not launch if an error is raised outside get_*_args (though is coorectly ending if error is inside).
Error message is in stout. deepaas launching despite error.
2.0.0
Description
Errors are not correctly piped. An error in the module code that prevents deepaas from launching is piped to
stout
, notsterr
.Steps to Reproduce
raise Exception('some error')
)deepaas-run
stout:
sterr:
Two things might occur:
Exception
is raised inget_*_args
, the deepaas process ends (with emptysterr
)Exception
was raised outsideget_*_args
, deepaas process does not end (anERROR
is just shown instout
).In both cases, behaviour is incorrect.
Expected behavior:
Error message is in
sterr
. deepaas should not launch if an error is raised outsideget_*_args
(though is coorectly ending if error is inside).Actual behavior
Error message is in
stout
. deepaas launching despite error.Versions
2.0.0