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

Is there a limit that run can stream? #346

Closed
ruudk opened this issue Mar 28, 2024 · 5 comments
Closed

Is there a limit that run can stream? #346

ruudk opened this issue Mar 28, 2024 · 5 comments

Comments

@ruudk
Copy link
Contributor

ruudk commented Mar 28, 2024

Trying out a command that streams a long JSON blob. But I notice that it's been cut off after 1500 lines.

Upon inspection I see that the last 12 lines are missing.

The command did successfully stop.

@ruudk
Copy link
Contributor Author

ruudk commented Mar 28, 2024

This works.

    $result = capture($cmd);
    io()->writeln($result);

@ruudk
Copy link
Contributor Author

ruudk commented Mar 28, 2024

It also seems that lines are written on top of each other. So that might explain why I was missing a few lines at the end.

@ruudk
Copy link
Contributor Author

ruudk commented Mar 28, 2024

Must be related to the custom streaming handler:

castor/src/functions.php

Lines 197 to 201 in 89eb467

if (!$context->quiet && !$callback) {
$callback = static function ($type, $bytes, $process) {
GlobalHelper::getSectionOutput()->writeProcessOutput($type, $bytes, $process);
};
}

@lyrixx
Copy link
Member

lyrixx commented Mar 29, 2024

Could you try to disable pty ?

@lyrixx
Copy link
Member

lyrixx commented Apr 9, 2024

I am going to close here for now due to the lack of feedback. Please let us know when you have more information and we can consider to reopen.

@lyrixx lyrixx closed this as completed Apr 9, 2024
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

No branches or pull requests

2 participants