Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassiewertsen authored Jun 28, 2021
1 parent 4d4db10 commit 42ac5b2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@
![Statamic 3.1+](https://img.shields.io/badge/Statamic-3.1+-FF269E?style=for-the-badge&link=https://statamic.com)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/jonassiewertsen/statamic-jobs.svg?style=for-the-badge)](https://packagist.org/packages/jonassiewertsen/statamic-jobs)

Laravel does handle failed jobs by default, but does need a database. What if your Statamic setup does not have or need any database?
Laravel does handle failed jobs by default, but does need a database. What if your Statamic setup does not have or need a database?
Well ... failing jobs can not be handled!

This addon does provide a simple solution for small Statamic setups:
A failing job will be saved as flat file in the `storage`.

You can access your failed jobs via the default artisan commands. Fx.:
`php artisan queue:failed` <- list all failed jobs
`php artisan queue:retry JOB_UUID_ID` <- Retry a given job
`php artisan queue:flush` <- Flush all failed jobs

## NOT PRODUCTION READY JET
Be aware, that this is an early version, which shouldn't be used on any production server jet.

Expand Down Expand Up @@ -40,6 +35,12 @@ composer require jonassiewertsen/statamic-jobs
// ],
```

## Usage
You can access your failed jobs via the default artisan commands. Fx.:
`php artisan queue:failed` <- list all failed jobs
`php artisan queue:retry JOB_UUID_ID` <- Retry a given job
`php artisan queue:flush` <- Flush all failed jobs

## Requirements
- PHP 8.0
- Laravel 8
Expand Down

0 comments on commit 42ac5b2

Please sign in to comment.