OCR-D / ocrd-webapi-implementation

4 stars 0 forks source link

null returned in /workflow/{workflow_id} #14

Open MehmedGIT opened 2 years ago

MehmedGIT commented 2 years ago

Sometimes /workflow/{workflow_id} returns a null instead of a job id of the Nextflow instance. The reason behind this is most probably a Nextflow process not starting successfully and an exception is thrown. We catch the exception and return None when we do that - this is bad. What we have to do is to try starting the Nextflow process again instead of returning None after catching an exception.