mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(core): Offload manual executions to workers (#11284)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { readFileSync } from 'fs';
|
||||
import type { n8n } from 'n8n-core';
|
||||
import { jsonParse } from 'n8n-workflow';
|
||||
import type { ITaskDataConnections } from 'n8n-workflow';
|
||||
import { jsonParse, TRIMMED_TASK_DATA_CONNECTIONS_KEY } from 'n8n-workflow';
|
||||
import { resolve, join, dirname } from 'path';
|
||||
|
||||
const { NODE_ENV, E2E_TESTS } = process.env;
|
||||
@@ -161,6 +162,22 @@ export const ARTIFICIAL_TASK_DATA = {
|
||||
],
|
||||
};
|
||||
|
||||
/**
|
||||
* Connections for an item standing in for a manual execution data item too
|
||||
* large to be sent live via pubsub. This signals to the client to direct the
|
||||
* user to the execution history.
|
||||
*/
|
||||
export const TRIMMED_TASK_DATA_CONNECTIONS: ITaskDataConnections = {
|
||||
main: [
|
||||
[
|
||||
{
|
||||
json: { [TRIMMED_TASK_DATA_CONNECTIONS_KEY]: true },
|
||||
pairedItem: undefined,
|
||||
},
|
||||
],
|
||||
],
|
||||
};
|
||||
|
||||
/** Lowest priority, meaning shut down happens after other groups */
|
||||
export const LOWEST_SHUTDOWN_PRIORITY = 0;
|
||||
export const DEFAULT_SHUTDOWN_PRIORITY = 100;
|
||||
|
||||
Reference in New Issue
Block a user