n8n + Argo = ❤️: Offloading CPU-Heavy Steps to Argo Workflows
Описание и применение
В n8n тяжелые операции в Code‑нодах блокируют воркеры и вызывают сбои. Перенос таких задач в Argo Workflows освобождает воркеры, устраняет прерывания и снижает очередь, хотя время выполнения растёт.
Задача
CPU‑heavy Code nodes in n8n block worker slots and cause task aborts.
Результат
Offloading CPU‑heavy steps to Argo frees n8n workers, eliminates task aborts, and keeps the queue backlog low, though overall job time increases due to serial execution within the runner.
Рабочий процесс
- Webhook triggers n8n workflow
- HTTP Request node submits Argo WorkflowTemplate with job parameters and n8n resume URL
- Wait node pauses execution until webhook callback
- Argo pod runs heavy job in node:26‑alpine container
- onExit handler posts status to n8n resume URL
- n8n resumes execution after callback
Доказательства
A CPU‑heavy step does not belong in an n8n worker's Node.js event loop. Let n8n hand the job to Argo, release its worker slot with a Wait node, and resume when the Argo pod calls back.
At 30 CPU‑seconds per job, 9 of the 10 executions failed with Task execution aborted because runner became unresponsive.
The offloaded workflow has three nodes. The flow: Submit, Wait, Callback.
- Дата записи: 2026-10-12T07:55:57.627Z