Commit Graph

65 Commits

Author SHA1 Message Date
Iván Ovejero 9bedd87744 fix(core): Fix task runner error report from user-defined function (#13706) 2025-03-05 16:04:09 +01:00
Tomi Turtiainen 87b3c508b3 fix(Code Node): Fix $items in Code node when using task runner (#13368) 2025-02-19 17:33:26 +02:00
Tomi Turtiainen 2774f35969 test: Add missing $rawParameter to list of known built-ins (#12976) 2025-01-31 14:42:38 +02:00
Tomi Turtiainen 3fa0714c22 test(core): Fix task runner test (#12801) 2025-01-23 13:03:01 +01:00
Tomi Turtiainen 3d9d5bf9d5 fix(core): Fix usage of external libs in task runner (#12788)
Co-authored-by: Cornelius Suermann <cornelius@n8n.io>
2025-01-23 10:18:00 +02:00
Tomi Turtiainen eceee7f3f8 fix(core): Prevent prototype pollution of internal classes in task runner (#12610) 2025-01-15 14:27:23 +02:00
Iván Ovejero bdf266cf55 fix(core): Prevent prototype pollution in task runner (#12588) 2025-01-15 10:51:42 +02:00
Tomi Turtiainen 68da9bb164 fix(core): Filter out task runner errors originating from user code from sentry (no-changelog) (#12537) 2025-01-10 15:22:03 +02:00
Tomi Turtiainen 35b618098b fix(core): Disallow code generation in task runner (#12522) 2025-01-09 12:27:17 +01:00
Iván Ovejero 88c0838dd7 fix(core): Fix Sentry error reporting on task runners (#12495) 2025-01-08 17:47:40 +01:00
Iván Ovejero 9953477450 fix(core): Align concurrency and timeout defaults between instance and runner (#12503) 2025-01-08 13:33:43 +01:00
Iván Ovejero 1b9100032f fix(core): Allow index as top-level item key for Code node (#12469) 2025-01-06 15:03:36 +01:00
कारतोफ्फेलस्क्रिप्ट™ 39d5e0ff87 refactor(core): Replace typedi with our custom DI system (no-changelog) (#12389)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2025-01-06 10:21:24 +01:00
Tomi Turtiainen b1940268e6 fix(core): Ensure tasks timeout even if they don't receive settings (#12431) 2025-01-03 12:27:47 +02:00
Tomi Turtiainen 4498e35192 fix(core): Fix task runner sending too many offers (#12415) 2025-01-02 10:16:28 +02:00
Tomi Turtiainen 0860fbe971 fix(core): Don't fail task runner task if logging fails (#12401) 2024-12-31 09:19:36 +02:00
Tomi Turtiainen f08db47077 chore: Clean up some code (#12287) 2024-12-30 16:32:09 +02:00
कारतोफ्फेलस्क्रिप्ट™ 471d7b9420 refactor(core): Move Logger to core (no-changelog) (#12310) 2024-12-23 13:46:13 +01:00
Iván Ovejero 95db031aa4 refactor: Introduce explicit-member-accessibility lint rule (#12325) 2024-12-20 11:44:01 +01:00
कारतोफ्फेलस्क्रिप्ट™ 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) 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)
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) 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) 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)
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) 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