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

fix(witai): Enforce the request timeout #355

Merged
merged 2 commits into from
Sep 22, 2023
Merged

fix(witai): Enforce the request timeout #355

merged 2 commits into from
Sep 22, 2023

Conversation

n0th1ng-else
Copy link
Owner

@n0th1ng-else n0th1ng-else commented Sep 18, 2023

  • fix(telegram): Connect execution promises

We have added the timeout even for the streaming request. So now
it should take max 20sec. Plus I assume we take up to 20sec
to transform wav file. We should fit into 60sec telegram timeout. I have added an env variable to control the behavior

  • fix(witai): Enforce the request timeout

Previous approach with timeout did not work. So farr the AbortSignal pattern seems to be working fine. This commit
reverts the old implementations and assignes the AbortSignal for the WitAI requests.

We have added the timeout even for the streaming request. So now
it should take max 20sec. Plus I assume we take up to 20sec
to transform wav file. We should fit into 60sec telegram timeout. I have added an env variable to control the behavior
Previous approach with timeout did not work. So farr the AbortSignal pattern seems to be working fine. This commit
reverts the old implementations and assignes the AbortSignal for the WitAI requests.
@sonarcloud
Copy link

sonarcloud bot commented Sep 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

30.0% 30.0% Coverage
0.0% 0.0% Duplication

@n0th1ng-else n0th1ng-else changed the title fix(telegram): Connect execution promises fix(witai): Enforce the request timeout Sep 22, 2023
@n0th1ng-else n0th1ng-else merged commit 05f03cf into master Sep 22, 2023
8 checks passed
@n0th1ng-else n0th1ng-else deleted the link-req branch September 22, 2023 20:28
@github-actions
Copy link

🎉 This PR is included in version 4.23.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant