Git Product home page Git Product logo

laravel-queue-worker's Introduction

Laravel Queue Worker

A simple queue worker spawner for written in Go for Laravel.

Basically, this command runs php artisan queue:work a given number of times asynchronously.

I build this with the main purpose being to run multiple queue workers asyncronously in a development environment, without having to setup sometuing like supervisor.

Installation

go get github.com/jralph/laravel-queue-worker

Usage

laravel-queue-worker --artisan="path/to/artisan" --processes=numberOfProcessesToRun
Usage: laravel-queue-worker [-a value] [-d value] [-m value] [-p value] [-q value] [-r value] [-s value] [-t value] [parameters ...]
 -a, --artisan=value    The path to artisan executable. [Default: "artisan"]
     --delay=value      Amount of time to delay failed jobs. [Default: 0]
     --memory=value     The memory limit in megabytes. [Default: 128]
 -p, --processes=value  The number of works to run. [Default: 5]
     --queue=value      The queue to listen on. [Default: "default"]
     --tries=value      The number of times to attempt a job. [Default: 0]
 -s, --sleep=value      Number of seconds to sleep when no jobs are available. [Default: 3]
     --timeout=value    The number of seconds a child process can run for. [Default: 60]
     --tries=value      The number of times to retry a failed job. [Default: 0]

Example

// Spin up 20 laravel queue workers running in the current directory.
laravel-queue-worker --processes=20

laravel-queue-worker's People

Contributors

josephralph avatar jralph avatar

Stargazers

 avatar

Watchers

 avatar

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.