Feature Request: Event after export is fully stored on disk #4319
Kristories
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
You can chain a job to the export |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, there is no event that fires after the export file has been completely written to disk.
When using chunks or queued exports (as described in the documentation), the
AfterSheet
event is triggered multiple times — once per chunk — which makes it unsuitable for logic that should only run once after the final file is ready.Example use case
A common scenario is sending a notification to the user once the exported file is ready for download. With the current events, there is no reliable way to know when the file has actually been stored.
It’s often suggested to use
->chain()
afterqueue()
. However, this also results in multiple executions when the export is processed in chunks. In other words, the chained job will fire multiple times, not once at the end of the entire export.Proposal
Introduce a new event (e.g.
AfterExportStored
) or alternatively, allow an explicitsuccess()
callback similar to the existingfailed()
method, that is dispatched once the export has fully completed and the file exists on disk, regardless of chunking or queued processing. This would provide a clean, reliable hook for post-processing tasks like sending download links or updating export statuses.Beta Was this translation helpful? Give feedback.
All reactions