Skip to content

[12.x] Add default scheduler output #56611

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

Open
wants to merge 1 commit into
base: 12.x
Choose a base branch
from

Conversation

thierry2015
Copy link
Contributor

@thierry2015 thierry2015 commented Aug 11, 2025

What

Allow setting the default output for scheduled work directly in the schedule instance

Why

Despite having the option at a few levels, including the scheduled event itself (e.g., $schedule->command('inspire')->appendOutputTo('/dev/stdout'), the schedule:work command, to name a few, there is, as far as I know, no centralized output configuration for the scheduler. It can be beneficial for those running the scheduler in ephemeral and/or container-driven ecosystems (e.g., Kubernetes jobs), or in a space where the filesystem may not be the most suitable log storage system, to better control where the scheduler's output should be written.

This answers a few questions/threads/requests:

Important to note that, like for event-specific output, any background task using /dev/stdout or /dev/stderr will not appear in the final output, as it is redirected to /dev/null.

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.

1 participant