2017 © Pedro Peláez
 

library worker

image

gloubster/worker

  • Monday, January 14, 2013
  • by romain
  • Repository
  • 0 Watchers
  • 2 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Gloubster Worker

Build Status, (*1)

Gloubster Worker runs against a Gloubster-Server and runs job., (*2)

Installation

Use composer to install the worker. As there is no tagged version of Gloubster Worker, use the --stability option :, (*3)

[ user@host : /usr/local/src ] $ composer create-project --stability=dev gloubster/worker gloubster-worker

Configuration

You have edit config/config.json to use the worker. There are two interesting properties in the configuration :, (*4)

  • server : is the RabbitMQ server configuration. You have to provide the access to the rabbitMQ server that distribute the jobs. In a soon future, this configuration will be distributed by GloubsterServer., (*5)

  • workers : workers defines wich type of workers are available for running., (*6)

{
    "server": {
        "host": "localhost",
        "port": 5672,
        "user": "guest",
        "password": "guest",
        "vhost": "/"
    },
    "workers": {
        "image": {
            "queue-name": "Gloubster\\Configuration::IMAGE_PROCESSING"
        },
        "video": {
            "queue-name": "Gloubster\\Configuration::VIDEO_PROCESSING"
        }
    }
}

Execution

To run a worker defined in the workers section, just use the command :, (*7)

[ user@host : /usr/local/src/gloubster-worker ] bin/worker run image

Update

No easy update for the moment, (*8)

License

Released under the MIT license., (*9)

The Versions