zenstruck / schedule-bundle

Schedule Cron jobs (commands/callbacks/bash scripts) within your Symfony application.
MIT License
387 stars 20 forks source link

`CommandTaskRunner`: reset SHELL_VERBOSITY to pre-run state #42

Closed kbond closed 3 years ago

kbond commented 3 years ago

Application::run() sets the SHELL_VERBOSITY environment variable globally. This causes subsequent tasks run in the same process to use this new value. This could lead to unexpected consequences (more log data than expected). This change captures the variable before running the command and resets it to this starting state after.