Giter VIP home page Giter VIP logo

statamic-jobs's Introduction

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.

statamic-jobs's People

Contributors

edalzell avatar jackmcdade avatar jonassiewertsen avatar oakeddev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

statamic-jobs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.