forked from mariuswilms/queue
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME
67 lines (52 loc) · 1.85 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Q
U
E
U
E Plugin for CakePHP
---- Queue is a CakePHP plugin for interfacing with beanstalkd, a fast,
distributed, in-memory workqueue service.
Synopsis
--------
This plugin was started with the idea that it may become a place for
classes connecting to various kinds[1] of queues. However since ages there
has support for beanstalkd only, which is a fantastic queue btw.
[1] http://groups.google.com/group/cake-php/msg/c557a3fdc36bbda9
Authors
-------
See the AUTHORS file.
Copyright & License
-------------------
Queue Plugin for CakePHP is Copyright (c) 2009 David Persson
if not otherwise stated. The code is distributed under the terms
of the MIT License. For the full license text see the LICENSE file.
Donations
---------
If you enjoy working with this plugin and this open source project is of
great use to you, consider buying me a book from my amazon wish list.
http://amzn.com/w/1YHE04BY8UDI - Your donation is much appreciated.
Download
--------
http://github.com/davidpersson/queue/downloads
Installation
------------
1. Extract the downloaded archive.
2. Move or copy the extracted directory davidpersson-queue-[hash]
to /path/to/your/app/plugins/queue.
3. Configure the connection to the queue server in your database.php.
You may also add 'host' and 'port' keys depending on your setup.
{{{
'queue' => array('datasource' => 'beanstalkd')
}}}
Versions & Requirements
-----------------------
1.x, CakePHP 1.3.x, PHP >=5.2.1, beanstalkd >=1.2
2.x, CakePHP 2.x, PHP >=5.2.1, beanstalkd >=1.2
Usage
-----
1. Start the beanstalkd server.
2. Add jobs to the queue utilizing the included job model.
{{{
return ClassRegistry::init('Queue.Job')->put(compact('file', 'process'));
}}}
3. Start the included debug worker.
$ cake queue