-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Scheduler] events? #49803
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
Comments
Thank you for this suggestion. |
Closing as I no longer see a need for this now that the If anyone has a specific use-case that can't be solved with standard messenger events (ping @alli83), feel free to re-open. |
fabpot
added a commit
that referenced
this issue
Oct 16, 2023
This PR was merged into the 6.4 branch. Discussion ---------- [Scheduler] pre_run and post_run events | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | #49803 (comment) | License | MIT Based on #49803 `@kbond` and taking into account #51553 The aim of this PR is to be able to act on the accumulated messages 'if something happens' and to be able to recalculate the heap via events (currently pre_run and post_run). The aim is to have access to - the the schedule and therefore add/cancel a certain type of message. - MessageContexte (e.g. access the id) - The message itself This PR would complement `@Jeroeny` #51553 PR by enabling action via events. Commits ------- 20fd21a [Scheduler] add PRE_RUN and POST_RUN events
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
I know when using the scheduler with messenger, you can use worker message events but I wonder if we should add scheduler-specific events? The stand-alone
Scheduler
could benefit.Example
I think it could be nice DX to define events when defining your schedule:
The text was updated successfully, but these errors were encountered: