@@ -21,8 +21,9 @@ Also, check your mongo version: 1.3.0 or higher
21
21
Resque
22
22
======
23
23
24
- Resque is a Redis-backed library for creating background jobs, placing
25
- those jobs on multiple queues, and processing them later.
24
+ Resque (pronounced like "rescue") is a Redis-backed library for creating
25
+ background jobs, placing those jobs on multiple queues, and processing
26
+ them later.
26
27
27
28
Background jobs can be any Ruby class or module that responds to
28
29
` perform ` . Your existing classes can easily be converted to background
@@ -254,6 +255,13 @@ variable.
254
255
255
256
$ VVERBOSE=1 QUEUE=file_serve rake environment resque:work
256
257
258
+ ### Process IDs (PIDs)
259
+
260
+ There are scenarios where it's helpful to record the PID of a resque
261
+ worker process. Use the PIDFILE option for easy access to the PID:
262
+
263
+ $ PIDFILE=./resque.pid QUEUE=file_serve rake environment resque:work
264
+
257
265
258
266
### Priorities and Queue Lists
259
267
@@ -439,7 +447,8 @@ You can also set the namespace directly using `resque-web`:
439
447
Using Passenger? Resque ships with a ` config.ru ` you can use. See
440
448
Phusion's guide:
441
449
442
- < http://www.modrails.com/documentation/Users%20guide.html#_deploying_a_rack_based_ruby_application >
450
+ Apache: < http://www.modrails.com/documentation/Users%20guide%20Apache.html#_deploying_a_rack_based_ruby_application >
451
+ Nginx: < http://www.modrails.com/documentation/Users%20guide%20Nginx.html#deploying_a_rack_app >
443
452
444
453
### Rack::URLMap
445
454
@@ -546,7 +555,7 @@ together. But, it's not that hard.
546
555
Resque Dependencies
547
556
-------------------
548
557
549
- gem install redis redis-namespace yajl-ruby
558
+ gem install redis redis-namespace yajl-ruby vegas sinatra
550
559
551
560
If you cannot install ` yajl-ruby ` (JRuby?), you can install the ` json `
552
561
gem and Resque will use it instead.
@@ -673,6 +682,11 @@ this way we can tell our Sinatra app about the config file:
673
682
674
683
Now everyone is on the same page.
675
684
685
+ Also, you could disable jobs queueing by setting 'inline' attribute.
686
+ For example, if you want to run all jobs in the same process for cucumber, try:
687
+
688
+ Resque.inline = ENV['RAILS_ENV'] == "cucumber"
689
+
676
690
677
691
Plugins and Hooks
678
692
-----------------
@@ -770,7 +784,7 @@ Once you've made your great commits:
770
784
1 . [ Fork] [ 1 ] Resque
771
785
2 . Create a topic branch - ` git checkout -b my_branch `
772
786
3 . Push to your branch - ` git push origin my_branch `
773
- 4 . Create an [ Issue ] [ 2 ] with a link to your branch
787
+ 4 . Create a [ Pull Request ] ( http://help.github.com/pull-requests/ ) from your branch
774
788
5 . That's it!
775
789
776
790
You might want to checkout our [ Contributing] [ cb ] wiki page for information
0 commit comments