Commit graph

48 commits

Author SHA1 Message Date
Iván Ovejero b479f14ef5
fix(core): Fix $getWorkflowStaticData on task runners (#12153)
Some checks failed
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Has been cancelled
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
2024-12-11 20:48:36 +02:00
कारतोफ्फेलस्क्रिप्ट™ 73145b70b8
chore: Convert ErrorReporting to a Service to use DI. Add some tests (no-changelog) (#11279) 2024-12-11 15:36:17 +01:00
Tomi Turtiainen db09d0e77e
chore(core): Upgrade backend @sentry packages to 8.42.0 (#12061) 2024-12-10 14:13:11 +02:00
Iván Ovejero addb4fa352
feat(core): Cancel runner task on timeout in external mode (#12101) 2024-12-10 12:50:22 +01:00
Tomi Turtiainen 516f3b7b4b
feat(core): Detect restart loop in a task runner process (no-changelog) (#12003)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2024-12-09 13:11:29 +02:00
Tomi Turtiainen 2e979547a4
refactor: Unify task runner env vars (#12040)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
2024-12-05 12:36:43 +02:00
Tomi Turtiainen 2e6845afcb
fix(core): Use the configured timezone in task runner (#12032) 2024-12-04 13:32:44 +02:00
Tomi Turtiainen 9669380097
feat(core): Add health endpoint for task broker server (no-changelog) (#11920) 2024-11-27 14:50:41 +02:00
Iván Ovejero 1d80225d26
fix(core): Correct invalid WS status code on removing connection (#11901) 2024-11-26 17:22:41 +01:00
Tomi Turtiainen e22d0f3877
perf(core): Batch items sent in runonceforeachitem mode (no-changelog) (#11870)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2024-11-26 12:21:51 +02:00
Iván Ovejero 0cbb46c8b9
feat(core): Shut down runner on idle timeout (no-changelog) (#11820) 2024-11-22 11:17:00 +01:00
Tomi Turtiainen ececdb09e4
fix(core): Make runner disconnected error more user-friendly (no-changelog) (#11829)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2024-11-21 17:26:08 +01:00
Iván Ovejero 7d3ad669e2
feat(core): Defer task on launcher handshake (no-changelog) (#11786) 2024-11-20 12:38:29 +01:00
Iván Ovejero 2632b1fb7f
fix(core): Ensure task runner module and server shut down (no-changelog) (#11801)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
2024-11-20 10:55:19 +01:00
Tomi Turtiainen 43aa389ea7
refactor(core): Bundle the go based launcher to the n8n docker image (no-changelog) (#11792)
Some checks failed
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Has been cancelled
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2024-11-19 23:16:57 +02:00
Iván Ovejero 4880d1a92a
refactor(core): Make launcher auth easier to debug (#11768)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
2024-11-19 09:32:19 +01:00
Iván Ovejero 124ac26e43
feat(core): Implement task timeouts and heartbeats for runners (no-changelog) (#11690)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2024-11-17 16:21:28 +02:00
Tomi Turtiainen f1ca8c128b
feat(core): Add sentry for task runner (no-changelog) (#11683)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2024-11-15 10:35:02 +01:00
Tomi Turtiainen 0fdb79a270
fix(core): Make task runner oom error message more user friendly (no-changelog) (#11646)
Some checks failed
Test Master / install-and-build (push) Has been cancelled
Test Master / Unit tests (18.x) (push) Has been cancelled
Test Master / Unit tests (20.x) (push) Has been cancelled
Test Master / Unit tests (22.4) (push) Has been cancelled
Test Master / Lint (push) Has been cancelled
Test Master / Notify Slack on failure (push) Has been cancelled
2024-11-08 20:27:37 +02:00
Iván Ovejero b496bf3147
fix(core): Ensure task runner server closes websocket connection correctly (#11633) 2024-11-08 10:09:24 +01:00
Tomi Turtiainen 0db658c6d0
perf(core): Remove unneeded execution data from runner data response (no-changelog) (#11627) 2024-11-08 09:35:18 +02:00
Tomi Turtiainen d25ae8e0d9
refactor: Rename disabled to enabled in runner config (#11621) 2024-11-07 14:22:43 +02:00
Tomi Turtiainen 3111dece72
perf(core): Deduplicate task runner data request response (no-changelog) (#11583)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2024-11-07 11:24:00 +02:00
Iván Ovejero ca75020821
perf(core): Load node types on demand on runners (no-changelog) (#11559) 2024-11-06 13:39:31 +01:00
Tomi Turtiainen 3edecffd71
refactor: Move runner types to runner package (#11552) 2024-11-05 10:32:15 +01:00
Tomi Turtiainen 9355fc3578
refactor: Encapsulate task runner startup to module (#11531) 2024-11-04 16:12:29 +02:00
Tomi Turtiainen e4aa1d01f3
feat: Only send needed data to task runner (no-changelog) (#11487) 2024-11-04 11:13:09 +02:00
Tomi Turtiainen d7ba206b30
feat: Make runner concurrency configurable (no-changelog) (#11448)
Some checks failed
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Has been cancelled
2024-10-29 21:08:50 +02:00
Tomi Turtiainen 4e3681b905
fix: Provide a better error message when task runner disconnects (no-changelog) (#11442) 2024-10-29 12:39:31 +02:00
Tomi Turtiainen d4c4db823e
feat: Forward logs from task runner to logger (no-changelog) (#11422) 2024-10-28 15:44:03 +01:00
Tomi Turtiainen c56f30ce15
feat: N8N_RUNNERS_MAX_OLD_SPACE_SIZE configuration (no-changelog) (#11419) 2024-10-28 16:14:38 +02:00
Tomi Turtiainen d6aaeea2ab
fix: Load sentry for task runner server only if configured (no-changelog) (#11420) 2024-10-25 17:52:39 +03:00
Tomi Turtiainen f414e90993
refactor: Clean task runner code (#11368) 2024-10-23 14:34:08 +03:00
Val 5390061f49
fix: Add config for max task runners payload size (no-changelog) (#11366) 2024-10-23 11:53:21 +01:00
Val cade9b2d91
feat: Add proper INodeTypes polyfill for Task Runner (no-changelog) (#11333) 2024-10-22 15:19:32 +01:00
Tomi Turtiainen 8404282046
feat: Enable running task runners externally (no-changelog) (#11319) 2024-10-22 16:23:59 +03:00
Tomi Turtiainen 0aae47c295
test: Fix flaky task-runner integration test (#11302) 2024-10-18 11:33:08 +03:00
Val ecbe568d69
feat: Enable Task Runners on Scaling mode Workers (no-changelog) (#11253) 2024-10-15 11:03:28 +01:00
Val ee6e7fec85
feat: Fail all tasks for a disconnected Task Runner (no-changelog) (#11254) 2024-10-15 11:03:16 +01:00
Val b028d81390
feat: Start Task Runner via Launcher (no-changelog) (#11071) 2024-10-14 14:19:17 +01:00
Tomi Turtiainen 1078fa662a
fix: Make sure errors are transferred correctly from js task runner (no-changelog) (#11214)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
2024-10-10 21:01:38 +03:00
Tomi Turtiainen eb2d1ca357
feat: Add configurable require support to js task runner (no-changelog) (#11184) 2024-10-10 12:44:02 +03:00
Tomi Turtiainen e94cda3837
feat: Add support for $env in the js task runner (no-changelog) (#11177)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Waiting to run
2024-10-09 17:31:45 +03:00
Tomi Turtiainen 12e54a5eea
fix: Use 127.0.0.1 as n8n uri for task runner process (no-changelog) (#11072) 2024-10-03 09:38:03 +03:00
Tomi Turtiainen 4546649c61
feat: Separate task runner server from main http server (no-changelog) (#11062) 2024-10-02 16:38:42 +03:00
Tomi Turtiainen 74fa259b37
feat: Make task runners work with n8n from npm (no-changelog) (#11015) 2024-10-02 15:16:02 +03:00
Val ae37035aad
fix: Task Runner Auth CI fail with busy event loop (no-changelog) (#11057) 2024-10-02 14:27:28 +03:00
Val 27d83e0d91
feat: Initial Code Task Runners support (no-changelog) (#10698)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
2024-10-02 09:31:56 +01:00