Download the PHP package freeman3s/laravel-job-status without Composer
On this page you can find all versions of the php package freeman3s/laravel-job-status. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-job-status
Laravel Job Status
Laravel package to add ability to track Job
progress, status and result dispatched to Queue
.
- Queue name, attempts, status and created/updated/started/finished timestamp.
- Progress update, with arbitrary current/max value and percentage auto calculated
- Handles failed job with exception message
- Custom input/output
- Native Eloquent model
JobStatus
-
Support all drivers included in Laravel (null/sync/database/beanstalkd/redis/sqs)
-
This package intentionally do not provide any UI for displaying Job progress.
If you have such need, please refer to https://github.com/imTigger/laravel-job-status-progress-view
or make your own implementation using
JobStatus
model
Requirements
- PHP >= 5.6.4
- Laravel >= 5.3
Installation
This plugin can only be installed from Composer.
Run the following command:
1. Add Service Provider (Laravel < 5.5)
Add the following to your config/app.php
:
2. Publish migration and config
3. Migrate Database
Usage
In your Job
, use Trackable
trait and call $this->prepareStatus()
in constructor.
In your Job dispatcher, call $job->getJobStatusId()
to get $jobStatusId
:
$jobStatusId
can be used elsewhere to retrieve job status, progress and output.
Documentations
Note
$jobStatus->job_id
result varys with driver
Driver | job_id |
---|---|
null | NULL (Job not run at all!) |
sync | empty string |
database | integer |
beanstalkd | integer |
redis | string(32) |
sqs | GUID |
All versions of laravel-job-status with dependencies
illuminate/contracts Version >=5.1
illuminate/database Version >=5.1
illuminate/queue Version >=5.1
illuminate/support Version >=5.1
nesbot/carbon Version >=1.21