Commit graph

46 commits

Author SHA1 Message Date
कारतोफ्फेलस्क्रिप्ट™ 7ce4e8d169
fix(core): Switch from lodash.set to lodash to address CVE-2020-8203 (no-changelog) (#12286) 2024-12-18 20:05:41 +01:00
Tomi Turtiainen 0f1461f2d5
fix(core): Fix binary data helpers (like prepareBinaryData) with task runner (#12259)
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-12-18 18:45:05 +02:00
Tomi Turtiainen 271401d882
test: Fix task runner tests on node 18 and 22 (#12243) 2024-12-16 14:37:24 +01:00
Iván Ovejero 120499291d
refactor(core): Unify error reporters in core and task runners (#12168)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
2024-12-13 17:34:37 +01:00
Tomi Turtiainen 889b15d33e
test: Add tests for $getWorkflowStaticData (#12203) 2024-12-13 11:30:32 +02:00
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
Iván Ovejero 57c6a6167d
fix(core): Ensure runners do not throw on unsupported console methods (#12167) 2024-12-11 18:37:07 +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 8bf6cce000
test: Allow runner tests to exit cleanly (#12127) 2024-12-10 13:09:36 +01: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 8bb0d3d823
refactor(core): Rename healthcheck to health check (#12122) 2024-12-10 13:00:30 +02:00
Tomi Turtiainen c5effca7d4
fix(core): Make sure task runner exits (#12123) 2024-12-10 13:00:18 +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 872535a40c
fix(core): Opt-out from optimizations if $item is used (#12036) 2024-12-04 14:32:28 +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 9cc3b210d7
refactor(core): Change task runner default healthcheck server port to 5681 (no-changelog) (#11910) 2024-11-27 09:48:13 +01:00
Tomi Turtiainen 137193c3e9
fix(core): Increase task runner offer validity and introduce randomness (no-changelog) (#11907) 2024-11-27 09:36:37 +01:00
Tomi Turtiainen a535e88f1a
fix(core): Fix validation of items returned in the task runner (#11897)
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-11-26 22:15:55 +02: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
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 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 0a05aa4862
fix(core): Handle item, items and $node correctly in JS task runner (no-changelog) (#11660) 2024-11-11 12:55:55 +01:00
Iván Ovejero af7d6e68d0
fix(core): Handle websocket connection error more gracefully in task runners (#11635) 2024-11-11 11:30:57 +01: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 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 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 5b98f8711f
fix: Add missing Node.js natives to task runners (no-changelog) (#11362) 2024-10-23 10:41:10 +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 d330b6b94a
fix: Fix task runner error propagation (no-changelog) (#11291) 2024-10-17 14:17:33 +03:00
Val 5c370c9235
fix: JS Task Runner not having access to Buffer (no-changelog) (#11285)
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-16 17:51:06 +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 18c0c8612c
fix: Fix console log handling in JS task runner (no-changelog) (#11147) 2024-10-08 16:32:50 +03:00
Tomi Turtiainen 51606cb279
refactor: Move js task runner into own directory (#11146) 2024-10-08 12:24:10 +03:00
Tomi Turtiainen 2bb1996738
feat: Add once for each item support for JS task runner (no-changelog) (#11109) 2024-10-07 21:18:32 +03:00
Tomi Turtiainen 42c0733990
fix: Fix task runner default n8n uri and auth endpoint (no-changelog) (#11128) 2024-10-07 13:28:33 +03:00
Tomi Turtiainen 4434668135
feat: Graceful termination of task runner (no-changelog) (#11009) 2024-10-07 12:23:14 +03:00
कारतोफ्फेलस्क्रिप्ट™ 49c71469f4
ci: @n8n/task-runner package setup (no-changelog) (#11067) 2024-10-02 16:14:57 +02:00