dansan/jobboy
JobBoy is the core library for the JobBoyProject, providing the foundational components used across the project. For setup and usage details, see the official documentation in the jobboy-doc repository.
jobs table (migrations provided), which may conflict with existing Laravel queue tables (e.g., failed_jobs, jobs). Requires careful schema management.failed_jobs table by default.)spatie/laravel-queue-scheduler, laravel-horizon) considered? If not, why?php artisan migrate) to create the jobs table.failed_jobs table or implement a custom solution.JobBoy::dispatch() facade.use JobBoy\Facades\JobBoy;
JobBoy::dispatch(function () {
// Background task logic
});
* * * * * php artisan jobboy:work) or custom loop to process jobs.queue:work).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Polling process crashes | Jobs remain unprocessed until polling resumes. | Use supervisor/process manager to auto-restart polling. |
| Database connection issues | Jobs cannot be fetched or marked as completed. | Implement retry logic with exponential backoff in the polling loop. |
| Job execution errors | Jobs may hang or fail silently. | Log job execution details and implement a failed_jobs table for recovery. |
| Concurrent polling | Duplicate job processing or race conditions. | Use database transactions and WHERE clauses to fetch unique jobs. |
| Missing dependencies | Jobs fail if required services (e.g., APIs) are unavailable. | Implement circuit breakers or retry logic within job handlers. |
How can I help you explore Laravel packages today?