Delay in catching docker exit code in bash script - Windmill