In #463 the memory limit was made configurable, however, when the memory limit is set too low (e.g. in my case more memory was being used than the default 64MB), Horizon will just fail silently.
For months Horizon was "broken" in one of my projects and I couldn't figure out why. No console output, no log output. The same is the case for #375.
This PR adds clear console output when php artisan horizon terminates due to using more memory than configured (or the default 64MB)
Before this PR:
After this PR:
I first just added the output without the change in src/Console/HorizonCommand.php, that is still an option.
The output is then:
In #463 the memory limit was made configurable, however, when the memory limit is set too low (e.g. in my case more memory was being used than the default 64MB), Horizon will just fail silently.
For months Horizon was "broken" in one of my projects and I couldn't figure out why. No console output, no log output. The same is the case for #375.
This PR adds clear console output when
php artisan horizon
terminates due to using more memory than configured (or the default 64MB)Before this PR:![image](https://github.com/laravel/horizon/assets/9074391/ee6a1de1-e5c6-4387-85f2-fe2868e4a461)
After this PR:![image](https://github.com/laravel/horizon/assets/9074391/679082cd-3cd2-492c-bb27-a19ee251d5ae)
I first just added the output without the change in
src/Console/HorizonCommand.php
, that is still an option. The output is then: