mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
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>
This commit is contained in:
@@ -31,6 +31,7 @@ import { isApiEnabled, loadPublicApiVersions } from '@/public-api';
|
||||
import { setupPushServer, setupPushHandler, Push } from '@/push';
|
||||
import type { APIRequest } from '@/requests';
|
||||
import * as ResponseHelper from '@/response-helper';
|
||||
import { setupRunnerServer, setupRunnerHandler } from '@/runners/runner-ws-server';
|
||||
import type { FrontendService } from '@/services/frontend.service';
|
||||
import { OrchestrationService } from '@/services/orchestration.service';
|
||||
|
||||
@@ -201,6 +202,10 @@ export class Server extends AbstractServer {
|
||||
const { restEndpoint, app } = this;
|
||||
setupPushHandler(restEndpoint, app);
|
||||
|
||||
if (!this.globalConfig.taskRunners.disabled) {
|
||||
setupRunnerHandler(restEndpoint, app);
|
||||
}
|
||||
|
||||
const push = Container.get(Push);
|
||||
if (push.isBidirectional) {
|
||||
const { CollaborationService } = await import('@/collaboration/collaboration.service');
|
||||
@@ -400,4 +405,9 @@ export class Server extends AbstractServer {
|
||||
const { restEndpoint, server, app } = this;
|
||||
setupPushServer(restEndpoint, server, app);
|
||||
}
|
||||
|
||||
protected setupRunnerServer(): void {
|
||||
const { restEndpoint, server, app } = this;
|
||||
setupRunnerServer(restEndpoint, server, app);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user