mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
No need for timeout
This commit is contained in:
parent
9718107873
commit
a2ae9417cb
|
@ -487,11 +487,7 @@ export class TaskBroker {
|
||||||
}
|
}
|
||||||
if (e instanceof TaskDeferredError) {
|
if (e instanceof TaskDeferredError) {
|
||||||
this.logger.info(`Task (${taskId}) deferred until runner is ready`);
|
this.logger.info(`Task (${taskId}) deferred until runner is ready`);
|
||||||
this.pendingTaskRequests.push(request);
|
this.pendingTaskRequests.push(request); // will settle on receiving task offer from runner
|
||||||
setTimeout(
|
|
||||||
() => this.settleTasks(),
|
|
||||||
3000 /* time for runner to go through handshake and send task offer */,
|
|
||||||
);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw e;
|
throw e;
|
||||||
|
|
Loading…
Reference in a new issue