New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

jonassiewertsen/statamic-jobs

6,995 10
Install
composer require jonassiewertsen/statamic-jobs
Latest Version:v1.5.0
PHP:^8.1
Laravel:10 · 11
Older releases:8 · 9
License:MIT
Last Updated:May 12, 2024
Links: GitHub  ·  Packagist
Maintainer: jonassiewertsen

Statamic Jobs

Statamic 3.1+ Latest Version on Packagist

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

Why should I use this addon? 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!

Installation

1. Require the package

composer require jonassiewertsen/statamic-jobs

2. Configure the Failed Queue Jobs Driver

// config/queue.php

    'failed' => [
        'driver' => env('QUEUE_FAILED_DRIVER', 'file'),
        // 'storage_path' => storage_path('failed-jobs'), 
    ],
    
    // INSTEAD of fx
    // 'failed' => [
    //     'driver' => env('QUEUE_FAILED_DRIVER', 'statamic'),
    //     'database' => env('DB_CONNECTION', 'mysql'),
    //     'table' => 'failed_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 10
  • Statamic 4

Support

I love to share with the community. Nevertheless, it does take a lot of work, time and effort.

Sponsor me on GitHub to support my work and the support for this addon.

License

This plugin is published under the MIT license. Feel free to use it and remember to spread love.

Related Packages

aerni/fathom

Easily navigate to your shared Fathom site from Statamic's control panel

5,883 3
statamic/cli

Statamic CLI Tool

95,092 77
danielgnh/statamic-mcp

MCP server for Statamic that lets AI clients manage entries, terms, globals, and...

4,475 5
mikomagni/statamic-environment

Statamic Environment Indicator and Dashboard Widget for Statamic 6

2,938 2
visuellverstehen/statamic-sourcestack

A Statamic utility to only include css/js sources once.

1,493 1

Version History

Version Released PHP Laravel License
v1.5.0 ^8.1 ^10.0|^11.0 MIT
v1.4.0 ^8.1 ^10.0 MIT
v1.3.0 ^8.0 ^9.0 MIT
v1.2.0 ^8.0 ^8.0 || ^9.0 MIT
v1.1.0 ^8.0 ^8.0 || ^9.0 MIT
Pre-releases (3)
Version Released PHP Laravel License
v1.0.0-beta.3 ^8.0 ^8.0 MIT
v1.0.0-beta.2 ^8.0 ^8.0 MIT
v1.0.0-beta.1 ^8.0 ^8.0 MIT