pmatseykanets / file-queue-failer by pmatseykanets

File based implementation of Laravel Queue Failer
2,883
3
3
Package Data
Maintainer Username: pmatseykanets
Maintainer Contact: pmatseykanets@gmail.com (Peter Matseykanets)
Package Create Date: 2015-08-05
Package Last Update: 2018-10-29
Language: PHP
License: MIT
Last Refreshed: 2024-12-22 15:00:07
Package Statistics
Total Downloads: 2,883
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 3
Total Watchers: 3
Total Forks: 0
Total Open Issues: 1

File based implementation of Laravel Queue Failer

Laravel 5.X StyleCI Build Status Latest Stable Version License

If you use job queues in your Laravel or Lumen project but don't want to store failed jobs in the database, especially if you're not using a database in the project itself (i.e. an API proxi) this file based failer is to rescue.

Contents

Installation

Install through composer

Laravel 5.6

$ composer require pmatseykanets/file-queue-failer

Laravel 5.3 - 5.5

$ composer require pmatseykanets/file-queue-failer:1.1.0

If you're using Laravel < 5.5 or if you have package auto-discovery turned off you have to manually register the service provider:

// config/app.php
'providers' => [
    /*
     * Package Service Providers...
     */
    Pvm\FileQueueFailer\Queue\QueueServiceProvider::class,
],

Laravel 5.0 - 5.2

$ composer require pmatseykanets/file-queue-failer:0.1.0

Swap the original QueueServiceProvider implementation in config\app.php

// config/app.php
'providers' => [
    // Illuminate\Queue\QueueServiceProvider::class,
    Pvm\FileQueueFailer\Queue\QueueServiceProvider::class,
];

Configuration

By default failed jobs will be stored in storage\failed_jobs directory.

You can change the location by changing the path property in failed section of config\queue.php config file.

// config\queue.php
'failed' => [
    'path' => '/some/other/path',
],

Usage

You can use all artisan queue commands as usual to manage failed jobs

 queue
  queue:failed        List all of the failed queue jobs
  queue:flush         Flush all of the failed queue jobs
  queue:forget        Delete a failed queue job
  queue:retry         Retry a failed queue job

Testing

$ ./vendor/bin/phpunit

Security

If you discover any security related issues, please email pmatseykanets@gmail.com instead of using the issue tracker.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.