Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Yii2 Queue Extension Change Log
- Enh #516: Ensure Redis driver messages are consumed at least once (soul11201)
- Bug #522: Fix SQS driver type error with custom value passed to `queue/listen` (flaviovs)
- Bug #528: Prevent multiple execution of aborted jobs (luke-)
- Enh #493: Pass environment variables to sub-processes (mgrechanik)

2.3.7 April 29, 2024
--------------------
Expand Down
4 changes: 2 additions & 2 deletions src/cli/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ protected function handleMessage($id, $message, $ttr, $attempt)
if (!in_array('color', $this->getPassedOptions(), true)) {
$cmd[] = '--color=' . $this->isColorEnabled();
}

$process = new Process($cmd, null, null, $message, $ttr);
$env = isset($_ENV) ? $_ENV : null;
$process = new Process($cmd, null, $env, $message, $ttr);
try {
$result = $process->run(function ($type, $buffer) {
if ($type === Process::ERR) {
Expand Down