Skip to content

Commit

Permalink
fix used value for retry after
Browse files Browse the repository at this point in the history
  • Loading branch information
okaufmann authored Jan 26, 2023
1 parent 7464d3e commit ed0cf0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/LaravelHorizonDoctorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function checkHorizonConfigs(array $horizonConfigs, array $queueConfig
// check that timeout is lower than retry_after
$queueConnection = $queueConfigs[$horizonConfig['connection']] ?? null;
if ($queueConnection && isset($horizonConfig['timeout']) && $horizonConfig['timeout'] >= $queueConnection['retry_after']) {
$errors[] = "`timeout` of configured Horizon queue `{$key}` ({$horizonConfig['timeout']}) in config/horizon.php should be marginally bigger than the `retry_after` option of the queue connection `{$key}` ({$horizonConfig['timeout']}) set in config/queue.php";
$errors[] = "`timeout` of configured Horizon queue `{$key}` ({$horizonConfig['timeout']}) in config/horizon.php should be marginally bigger than the `retry_after` option of the queue connection `{$key}` ({$queueConnection['retry_after']}) set in config/queue.php";
}

if ($errors->count()) {
Expand Down

0 comments on commit ed0cf0c

Please sign in to comment.