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

Increased timeout on captain requests using ky #1192

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

rosiakpiotr
Copy link
Contributor

Opening pull request as a result of investigation of program hanging on "Loading Blocks" on Windows 11 system. Link to discord message for more information: https://discord.com/channels/1120876301809623050/1179493072212590673/1281582054957387777

Introduced change is changing time in milliseconds before request fails due to timeout error. On older machines the default value (10 * 1000) may be too small rendering "Loading Blocks" to be stuck and program becoming inoperable. This effect is observed on decent hardware with i5-12500H and 7 GB/s SSD drives. Did not investigate exact details what is the time consuming factor.

At first glance disabling timeout would make sure that requests to captain wouldn't fail due to this reason but realistically it is better to have timeout error thrown and handled in the UI (not the case at the time of writing), but with increased value to maybe half a minute - open to talk about the exact value but this one should work fine.

Copy link

vercel bot commented Sep 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ❌ Failed (Inspect) Sep 6, 2024 1:33pm

@LatentDream
Copy link
Member

@jackparmer @itsjoeoui Can you guys merge this one, a lot of person have the infinite "Loading Blocks" problem on Windows 10/11. @rosiakpiotr found the root cause and fixed it

@itsjoeoui itsjoeoui merged commit ec326e1 into flojoy-ai:main Sep 7, 2024
11 of 15 checks passed
@itsjoeoui
Copy link
Member

Amazing! Thanks for your contribution @rosiakpiotr 🙏

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