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

Serialize very large tasks to a temporary file #213

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

gazugafan
Copy link
Contributor

When a serialized task is too large, it will fail to get sent over the command line. This PR will catch when a task is too large for this, save it to a temporary file, and just send the filename instead--seamlessly interpreting the file and deleting it. Should fix #76 and #151

I'm not sure what the maximum size limit is, and it probably differs by system. I've set it to 100000 bytes by default, but it can be configured using Pool->maxInputSize()

@AlexVanderbist
Copy link
Member

Awesome, thanks!

@AlexVanderbist AlexVanderbist merged commit 7f7a60f into spatie:master Aug 25, 2023
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.

The serialized output may only be 10240 bytes long. - Is there a reason for this limit?
2 participants