Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Command schedule:work minor features: schedule:run output file & environment specific verbosity #45949

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants