Giter VIP home page Giter VIP logo

codeigniter-queue-worker's People

Contributors

yidas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeigniter-queue-worker's Issues

Trying to understand how things work & how it should be used

From my understanding, you only need to run php index.php worker listen and the listener will automatically dispatch a worker if there's a job in the queue (given that you configured everything as described in the README). php index.php worker work is used to run the worker manually while php index.php worker launch is used to run the listener in the background.

Is my assumptions right and if it is, is the following practice correct:

  • In production I will only need to set one cron job to run the command php index.php worker launch
  • Then whenever I want to add a job to my queue, I can simply dispatch a job to my configured queue with my own library
  • The listener will automatically detects a new job in the queue & dispatch a worker
  • Worker will handle the job & remove it from the queue upon completion

Any way to accomplish windows support?

Hi, is there anyway to get windows support for multiple workers? Currently, I can only do php index.php queue/my_worker single which only launces a single worker, so if I have multiple jobs in the queue, only one of them will be executed at a single time.

Not really an issue but is there anyway to be able to have windows support the listen or launch command? I'm willing to contribute given some guidance if necessary.

Request specific examples

I'm interested in with codeigniter-queue-worker, can you give example source code 'myjobs' library ?

Question: Compatible Codeigniter V2?

Hello, I saw in documentation is requeried codeigniter version 3+

It is possible to make compatible with version 2?

Another question, you can store data for use it in the queue job? similar has laravel?

Listener not running

I did setup everything was working fine.
There were some health issues coming so I did kill by PID.
Now when I run this command.
php index.php MyWorker/launch

It does not start listening, and this commands is printing only.

`ps aux|grep php

root 2132 0.0 2.7 451296 27964 ? Ss 14:42 0:00 php-fpm: master process (/etc/php/7.2/fpm/php-fpm.conf)

www-data 2160 0.0 1.5 453596 15856 ? S 14:42 0:00 php-fpm: pool www

www-data 2161 0.0 1.5 453596 15856 ? S 14:42 0:00 php-fpm: pool www

ubuntu 2709 0.0 0.1 14856 1032 pts/0 S+ 15:59 0:00 grep --color=auto php`

Adeel

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.