Skip to content

Conversation

ralphschindler
Copy link
Contributor

Minor features to make schedule:work less chatty in certain environments:

schedule:work command to accept option --run-output-file= to redirect schedule:run output. This would allow someone using schedule:work to have it run similar to directions for cron, this is intended to be used like artisan schedule:work --run-output-file=/dev/null which would result in run being called like in this process list:

php /app/artisan schedule:work --run-output-file=/dev/null sh -c '/usr/bin/php8.1' 'artisan' 'schedule:run' >> '/dev/null' 2>&1 

Additionally, different default verbosity levels for this command depending on the environment: local normal) vs. production = verbose (-v)

- schedule:work command to accept option to redirect schedule:run output (similar to directions for cron) - different verbosity for local (normal) vs. production (must request verbose)
@ralphschindler ralphschindler changed the title Command schedule:work minor features: schedule:run output file & environment specific verbosity [9.x] Command schedule:work minor features: schedule:run output file & environment specific verbosity Feb 3, 2023
@taylorotwell taylorotwell merged commit d113954 into laravel:9.x Feb 3, 2023
@taylorotwell
Copy link
Member

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants