JS-1187: Job waits until agent is available