<p>We have two different pods in Kubernetes for our Laravel app, </p>

<ul>
<li>one running apache serving on port 80, (CMD /usr/sbin/apache2ctl -D FOREGROUND)</li>
<li>and another running worker (Laravel Horizon) (CMD php /var/www/artisan horizon)</li>
</ul>

<p>The issue is when I check the horizon dashboard, it says 'Active', and I can see the Jobs in the 'Pending Jobs' section, but they never actually execute. They are just sitting there idle.</p>

<p>Now, when I SSH in the pod running apache and manually and run the command 'php artisan horizon' than it actually executes all pending jobs.</p>

<p>I have already ensured the followings:</p>

<ol>
<li>Both the pods are connected with the same Redis database service</li>
<li>Horizon Prefix is the same for both the pods</li>
</ol>

<p>Double check your <code>APP_ENV</code> matches one of the environments in the horizon.php config. Otherwise horizon will not start any queue workers.</p>
<p>By default only <code>local</code> and <code>production</code> environments are provided:</p>
<p><a href="https://laravel.com/docs/8.x/horizon#environments" rel="noreferrer">https://laravel.com/docs/8.x/horizon#environments</a></p>
