Update job

use an inner function instead of reusing the one from async for readability