fix: reduce no-response errors in cal ai with increase of timeout threshold (#11845)
* increase agent loop timeout threshold * increase api/receive timeout thresholdpull/11848/head
parent
522fd64f69
commit
2c5cb6abe4
|
@ -5,6 +5,9 @@ import agent from "../../../utils/agent";
|
||||||
import sendEmail from "../../../utils/sendEmail";
|
import sendEmail from "../../../utils/sendEmail";
|
||||||
import { verifyParseKey } from "../../../utils/verifyParseKey";
|
import { verifyParseKey } from "../../../utils/verifyParseKey";
|
||||||
|
|
||||||
|
// Allow agent loop to run for up to 5 minutes
|
||||||
|
export const maxDuration = 300;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Launches a LangChain agent to process an incoming email,
|
* Launches a LangChain agent to process an incoming email,
|
||||||
* then sends the response to the user.
|
* then sends the response to the user.
|
||||||
|
|
|
@ -14,6 +14,10 @@ import now from "../../../utils/now";
|
||||||
import sendEmail from "../../../utils/sendEmail";
|
import sendEmail from "../../../utils/sendEmail";
|
||||||
import { verifyParseKey } from "../../../utils/verifyParseKey";
|
import { verifyParseKey } from "../../../utils/verifyParseKey";
|
||||||
|
|
||||||
|
// Allow receive loop to run for up to 30 seconds
|
||||||
|
// Why so long? the rate determining API call (getAvailability, getEventTypes) can take up to 15 seconds at peak times so we give it a little extra time to complete.
|
||||||
|
export const maxDuration = 30;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies email signature and app authorization,
|
* Verifies email signature and app authorization,
|
||||||
* then hands off to booking agent.
|
* then hands off to booking agent.
|
||||||
|
|
Loading…
Reference in New Issue