mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
feat: Add timeout options to sendAndWait operations (#12753)
This commit is contained in:
@@ -6,12 +6,7 @@ import type {
|
||||
INodeTypeBaseDescription,
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
import {
|
||||
NodeConnectionType,
|
||||
NodeOperationError,
|
||||
SEND_AND_WAIT_OPERATION,
|
||||
WAIT_INDEFINITELY,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeConnectionType, NodeOperationError, SEND_AND_WAIT_OPERATION } from 'n8n-workflow';
|
||||
|
||||
import { draftFields, draftOperations } from './DraftDescription';
|
||||
import { labelFields, labelOperations } from './LabelDescription';
|
||||
@@ -20,6 +15,7 @@ import { messageFields, messageOperations } from './MessageDescription';
|
||||
import { threadFields, threadOperations } from './ThreadDescription';
|
||||
import type { IEmail } from '../../../../utils/sendAndWait/interfaces';
|
||||
import {
|
||||
configureWaitTillDate,
|
||||
createEmail,
|
||||
getSendAndWaitProperties,
|
||||
sendAndWaitWebhook,
|
||||
@@ -204,7 +200,9 @@ export class GmailV2 implements INodeType {
|
||||
raw: await encodeEmail(email),
|
||||
});
|
||||
|
||||
await this.putExecutionToWait(WAIT_INDEFINITELY);
|
||||
const waitTill = configureWaitTillDate(this);
|
||||
|
||||
await this.putExecutionToWait(waitTill);
|
||||
return [this.getInputData()];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user