docs: document DynamicallyScheduledTaskHandler for custom rescheduling#2349
docs: document DynamicallyScheduledTaskHandler for custom rescheduling#2349Soner (shyim) wants to merge 3 commits into
Conversation
Add a 'Dynamic rescheduling' section to the scheduled task guide covering the new DynamicallyScheduledTaskHandler interface, available since Shopware 6.7.13.0.
Developer Docs healthcheckStatus: Completed with |
|
I added blocked label, as we wait until it's released right? |
There was a problem hiding this comment.
Pull request overview
This PR updates the Shopware 6 plugin documentation by extending the “Add Scheduled Task” guide with details on the new DynamicallyScheduledTaskHandler interface, enabling task handlers to compute their own next execution time.
Changes:
- Adds a new “Dynamic rescheduling” section with an “Available since Shopware version …” note.
- Documents the dynamic scheduling behavior (including
nullfallback) and provides a handler example implementingDynamicallyScheduledTaskHandler.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This always depends on the PR; ideally, we merge when it is released. Sometimes we want to give external developers a longer "heads up". As this is only one new interface and the version is clearly stated beforehand, I would go with "merge now". |
Micha Hobert (Isengo1989)
left a comment
There was a problem hiding this comment.
Thx for the PR Soner (@shyim) 👍
Summary
Documents the new
DynamicallyScheduledTaskHandlerinterface in the "Add Scheduled Task" guide. A handler implementing it can compute its own next execution time (e.g. the timestamp of the next pending record) instead of the defaultnow + runIntervalschedule, while the executor still persists the schedule.Adds a new "Dynamic rescheduling" section with an
Available since Shopware version 6.7.13.0note and a full handler example.Related links
Checklist
PageRefreferences where relevant..gitbook.yamlif pages were moved, renamed, or deleted..wordlist.txt(and sorted it) if spellcheck flags new legitimate terms.Notes
New terms are all wrapped in code fences/backticks, so no
.wordlist.txtchanges were needed —make spellcheckand the markdown style check both pass locally. The "available since" version (6.7.13.0) matches the upcoming release the platform PR targets; adjust if the platform PR lands in a different version.