When Handlers Run & flush_handlers
Control end-of-play handler timing.
Handlers Run at the End
By default, all notified handlers run once, at the very end of the play, after every task has finished. Not the moment they were notified.
Why Defer Them?
Deferring means a service restarts once even after many config changes. That avoids needless restarts mid-play and saves time.
All lessons in this course
- Notify a Handler on Change
- Defining Handlers & Restart Patterns
- When Handlers Run & flush_handlers
- Listen: One Trigger, Many Handlers