Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding session_timeout param #742

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Vaibhav159
Copy link
Contributor

Please describe the changes in your PR. If it is addressing an issue, please reference that as well.

Implementing a session_timeout event for FastAPI and Websocket transport will grant users control over the pipeline. This event will be triggered when the time limit reaches a predefined threshold. Upon receiving this event, the pipeline will be gracefully terminated, adhering to the user’s business requirements. For instance, calls routed through Twilio can be terminated after a maximum of two minutes.

@Vaibhav159 Vaibhav159 marked this pull request as ready for review November 21, 2024 10:32
@markbackman
Copy link
Contributor

Hey @Vaibhav-Lodha, thanks for the PR! In general, I agree with this type of addition. The one thing I'd like to talk over with the team is related to this issue: #728. The websocket connection will be severed but the call will be ongoing. @aconchillo has worked on this but he's out for a family emergency. Once he's back, we'll discuss.

@markbackman markbackman self-assigned this Nov 21, 2024
@Vaibhav-Lodha
Copy link

@markbackman @aconchillo any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants