No need for timeout

This commit is contained in:
Iván Ovejero 2024-11-19 11:37:05 +01:00
parent 9718107873
commit a2ae9417cb
No known key found for this signature in database

View file

@ -487,11 +487,7 @@ export class TaskBroker {
}
if (e instanceof TaskDeferredError) {
this.logger.info(`Task (${taskId}) deferred until runner is ready`);
this.pendingTaskRequests.push(request);
setTimeout(
() => this.settleTasks(),
3000 /* time for runner to go through handshake and send task offer */,
);
this.pendingTaskRequests.push(request); // will settle on receiving task offer from runner
return;
}
throw e;