Fix async loop bug causing all jobs to be considered partially written.

@ionelmc @ask