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.
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.