© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
StanProg

BulkAction with polling within action closure

I have a BulkAction that generates a PDF file and force downloads it. The problem is that the generation takes too long (60s+) and the server times out.

My idea is in the BulkAction action() closure to dispatch the job that generates that file and uploads it. It will keep the state of the job in DB so I need to periodically check if it's generated & store and when it is, to force-download it.

I read about polling in Livewire and got that
<div wire:poll="foo">
<div wire:poll="foo">
which I thought to render within this closure, it should call the "foo" action, which action should check the DB if the file is uploaded and will force-download it.

The think in the last paragraph did not worked though as the "foo" action is not being executed. Do you have any ideas why is that, or other ideas of how to solve my problem?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Modal action polling
FilamentFFilament / ❓┊help
2y ago
Access BulkAction $record inside a form field closure
FilamentFFilament / ❓┊help
3y ago
Action within Action->Slideover()
FilamentFFilament / ❓┊help
6mo ago
Custom Table Action and polling
FilamentFFilament / ❓┊help
13mo ago