Skip to content

Commit 56fa193

Browse files
committed
fix: flush streamed sqs process output
1 parent e96e751 commit 56fa193

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Lambda/Handler/Sqs/AbstractIlluminateQueueSqsHandler.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ final protected function processRecord(InvocationContext $context, SqsRecord $re
9393
*/
9494
protected function writeProcessOutput(string $type, string $output): void
9595
{
96-
fwrite(Process::ERR === $type ? STDERR : STDOUT, $output);
96+
$stream = Process::ERR === $type ? STDERR : STDOUT;
97+
98+
fwrite($stream, $output);
99+
fflush($stream);
97100
}
98101

99102
/**

0 commit comments

Comments
 (0)