spatie/laravel-long-running-tasks
Monitor and poll external long-running jobs (e.g., AWS Rekognition) in Laravel. Define a task with a check() method that runs on a configurable interval, store meta/context, and automatically reschedule until it reports completion.
pending, running, failed, etc.), and exception handling to monitor task health and diagnose failures.LongRunningTaskLogItem model to add domain-specific fields (e.g., user_id, priority, or task_type).Adopt This Package When:
Look Elsewhere When:
"This package lets us handle time-consuming operations—like processing large files, polling third-party APIs, or batch updates—without slowing down our web app. It’s like setting a task on autopilot: we start it, and the system checks back periodically until it’s done. This improves performance, reduces timeouts, and gives us visibility into task statuses (e.g., ‘failed’, ‘in progress’). It’s a plug-and-play solution that cuts dev time and makes our system more reliable. Think of it as ‘set it and forget it’ for background work."
Business Impact:
*"Spatie’s laravel-long-running-tasks gives us a robust way to manage external polling and background jobs with minimal boilerplate. Key benefits:
Why Not Build It?
Proposed Use Cases:
while loops for checking external task statuses (e.g., AWS Batch, payment processors).Next Steps:
composer.json and publish migrations/config.LongRunningTask class for your first use case (e.g., ProcessLargeFileTask).LongRunningTaskLogItem model if you need custom fields (e.g., user_id)."*How can I help you explore Laravel packages today?