Download the PHP package rafaeltovar/laravel-job-trackable without Composer
On this page you can find all versions of the php package rafaeltovar/laravel-job-trackable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rafaeltovar/laravel-job-trackable
More information about rafaeltovar/laravel-job-trackable
Files in rafaeltovar/laravel-job-trackable
Package laravel-job-trackable
Short Description Laravel job tracked in Redis.
License MIT
Homepage https://github.com/rafaeltovar/laravel-job-trackable
Informations about the package laravel-job-trackable
Trackables Laravel Jobs
Track Laravel Jobs, saving status, inputs, outputs and date times during a week in Redis.
Based on imTigger/laravel-job-status.
Jobs tracks is saved during a week in Redis. This time can be setted in config file.
Installation
Composer
Features
- [x] Job status
- [x] Date time of queue, execute, update and finished
- [x] Number of retries
- [x] Redis persist / NoSQL database
- [x] Controller for manage Tracks
- [x] Simple and light
- [ ] Cli commands
Instructions
Step 1. Include Service Provider into providers
section in config/app.php
.
Step 2. Add trait to our Laravel Job
and init track with track
method.
*Step 3.** Use setOutput
method for save final Job output.
Using Controller
If you need use the controller for get jobs can you use it.
Object TrackedJob
The object LaravelJobTrackable\TrackedJob
have the following public methods:
// TODO
Method | Allowed values | |||
---|---|---|---|---|
getStatus() : string |
||||
setStatus(string) : self |
||||
setOutput(array) |
||||
getOutput(): array |
||||
getQueuedAt() ?\Carbon\Carbon |
All versions of laravel-job-trackable with dependencies
ircmaxell/random-lib Version ^1.2
illuminate/support Version >=5.6
illuminate/contracts Version >=5.6
illuminate/queue Version >=5.6
nesbot/carbon Version ^1.25