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

Update setting-the-timeout.md #889

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Conversation

koernchen02
Copy link
Contributor

At an appropriate place in the documentation, point out a potential problem with CLI server workers when Browsershot is used with Docker.

After having very confusing timeout issues while generating a lot of browsershots for a PDF document, I found an Issue and a respective comment #516 (comment) that seems to get rid of the problem. I never experienced this problem in production so I was pretty sure it had to do with my local environment, in this case the usual culprits: node version, puppeteer version etc. Of cause I've tried different node and puppeteer versions to get rid of this annoying problem but in the end setting the PHP_CLI_SERVER_WORKERS (in my case to 20) reduced it to nearly none.

I didn't want to propose a specific value, since I assume my 20 workers might be total overkill but 10 weren't enough.
Since it took me a very long time to resolve this or find the root cause, i think this could spare other developers some time.

I was down the rabbit whole checking if my queue:listener restarts messed with the processes etc. just to find out that more cli server workers seem to help best.

At an appropriate place in the documentation, point out a potential problem with CLI server workers when Browsershot is used with Docker.
@AlexVanderbist
Copy link
Member

Very good catch, I've lost a couple of hours due to this issue myself 🙃 Thanks for the PR!

@AlexVanderbist AlexVanderbist merged commit 107c106 into spatie:main Nov 25, 2024
1 check passed
@koernchen02 koernchen02 deleted the patch-1 branch December 21, 2024 23:47
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.

2 participants