-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
add debug:scheduler
command
#49795
add debug:scheduler
command
#49795
Conversation
30f0000
to
67707f6
Compare
So fast! And you was even not there during the symfony live! 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great addition for this new component.
Other debug commands support various output formats. You can add json
, xml
or md
if you want, or just stick with txt
and leave the other formats for later.
Interesting, I didn't know that. I modelled this command after debug:messenger which does not have this feature. I'd prefer that to be done in a followup PR. |
009f43f
to
3ed18eb
Compare
debug:scheduler
commanddebug:scheduler
command
d92e00f
to
398e2b2
Compare
Thank you @kbond. |
This PR was squashed before being merged into the 6.3 branch. Discussion ---------- [Scheduler] `debug:schedule` refinements | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Followup to #49795 | License | MIT | Doc PR | n/a Some fixes/refinements to the output: 1. If the message is an envelope, unwrap 2. prefix stringable message/trigger with short class name ``` --------------------------- -------------------------------------- --------------------------- Message Trigger Next Run --------------------------- -------------------------------------- --------------------------- DoSomething: do something CronExpressionTrigger: * * * * * 2023-03-25T08:03:00-04:00 --------------------------- -------------------------------------- --------------------------- ``` Commits ------- 8396210 [Scheduler] `debug:schedule` refinements
Example output:
The output is helped if the trigger and message implement
\Stringable
. I've madeCronExpressionTrigger
stringable but I think we should have all the packaged triggers implement.