job_coordinator: add type spec to the rest of the functions.
job_coordinator: fix the return value of do_submit_tasks_in in case of failure.
Merge pull request #520 from pooya/concurrent_failure

Concurrent failure