Skip to content

Commit 013a80d

Browse files
committed
Merge branch 'master' of github.com:defunkt/resque
2 parents 05bcde2 + 54f4396 commit 013a80d

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

README.markdown

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ comprised of three parts:
1717
3. A Sinatra app for monitoring queues, jobs, and workers.
1818

1919
Resque workers can be distributed between multiple machines,
20-
support priorities, are resililent to memory bloat / "leaks," are
20+
support priorities, are resilient to memory bloat / "leaks," are
2121
optimized for REE (but work on MRI and JRuby), tell you what they're
2222
doing, and expect failure.
2323

@@ -151,12 +151,12 @@ do this:
151151
This is why our above example (and all the examples in `examples/`)
152152
uses object IDs instead of passing around the objects.
153153

154-
While this is less convenient than just sticking a marshalled object
154+
While this is less convenient than just sticking a marshaled object
155155
in the database, it gives you a slight advantage: your jobs will be
156156
run against the most recent version of an object because they need to
157157
pull from the DB or cache.
158158

159-
If your jobs were run against marshalled objects, they could
159+
If your jobs were run against marshaled objects, they could
160160
potentially be operating on a stale record with out-of-date information.
161161

162162

@@ -184,7 +184,7 @@ exceptions you would not normally throw in order to assist debugging.
184184
Workers
185185
-------
186186

187-
Resque workers are rake tasks the run forever. They basically do this:
187+
Resque workers are rake tasks that run forever. They basically do this:
188188

189189
start
190190
loop do
@@ -419,7 +419,7 @@ over the other?
419419
* Resque can only place JSONable Ruby objects on a queue as arguments
420420
* DelayedJob can place _any_ Ruby object on its queue as arguments
421421
* Resque includes a Sinatra app for monitoring what's going on
422-
* DelayedJob can be queryed from within your Rails app if you want to
422+
* DelayedJob can be queried from within your Rails app if you want to
423423
add an interface
424424

425425
If you're doing Rails development, you already have a database and
@@ -643,7 +643,7 @@ correctly (though we make an effort to tell you if we feel this is the
643643
case). The tests attempt to start an isolated instance of Redis to
644644
run against.
645645

646-
Also make sure you've installed all the depenedencies correctly. For
646+
Also make sure you've installed all the dependencies correctly. For
647647
example, try loading the `redis-namespace` gem after you've installed
648648
it:
649649

@@ -665,10 +665,10 @@ Contributing
665665

666666
Once you've made your great commits:
667667

668-
1. [Fork](fk) Resque
668+
1. [Fork][1] Resque
669669
2. Create a topic branch - `git checkout -b my_branch`
670670
3. Push to your branch - `git push origin my_branch`
671-
4. Create an [Issue](is) with a link to your branch
671+
4. Create an [Issue][2] with a link to your branch
672672
5. That's it!
673673

674674

@@ -700,5 +700,5 @@ Author
700700
Chris Wanstrath :: [email protected] :: @defunkt
701701

702702
[0]: http://github.com/blog/542-introducing-resque
703-
[fk]: http://help.github.com/forking/
704-
[is]: http://github.com/defunkt/resque/issues
703+
[1]: http://help.github.com/forking/
704+
[2]: http://github.com/defunkt/resque/issues

lib/resque/server/public/ranger.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
var poll_interval = 2;
2+
13
$(function() {
4+
25
$('.time').relatizeDate()
36
$('.backtrace').click(function() {
47
$(this).next().toggle()
@@ -14,7 +17,7 @@ $(function() {
1417
$('#main').html(data)
1518
$('#main .time').relatizeDate()
1619
}})
17-
}, 2 * 1000)
20+
}, poll_interval * 1000)
1821
return false
1922
})
2023

lib/resque/worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def hostname
383383
# Returns an array of string pids of all the other workers on this
384384
# machine. Useful when pruning dead workers on startup.
385385
def worker_pids
386-
`ps -e -o pid,command | grep [r]esque`.split("\n").map do |line|
386+
`ps -A -o pid,command | grep [r]esque`.split("\n").map do |line|
387387
line.split(' ')[0]
388388
end
389389
end

0 commit comments

Comments
 (0)