File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
- Resque Plugins
2
- ==============
1
+ Resque Hooks
2
+ ============
3
3
4
- Resque encourages plugin development. For a list of available plugins
5
- see < http://wiki.github.com/defunkt/resque/plugins >
4
+ You can customize Resque or write plugins using its hook API. In many
5
+ cases you can use a hook rather than mess with Resque's internals.
6
6
7
- In most cases you can customize your environment with a plugin rather
8
- than adding to Resque itself .
7
+ For a list of available plugins see
8
+ < http://wiki.github.com/defunkt/resque/plugins > .
9
9
10
10
11
11
Worker Hooks
@@ -38,7 +38,7 @@ The `after_fork` hook will be run in the child process and is passed
38
38
the current job. Any changes you make, therefor, will only live as
39
39
long as the job currently being processes.
40
40
41
- All hooks can also be set using a setter, e.g.
41
+ All worker hooks can also be set using a setter, e.g.
42
42
43
43
Resque.after_fork = proc { puts "called" }
44
44
Original file line number Diff line number Diff line change @@ -654,15 +654,15 @@ this way we can tell our Sinatra app about the config file:
654
654
Now everyone is on the same page.
655
655
656
656
657
- Plugins
658
- -------
657
+ Plugins and Hooks
658
+ -----------------
659
659
660
660
For a list of available plugins see
661
661
< http://wiki.github.com/defunkt/resque/plugins > .
662
662
663
- If you'd like to write your own plugin, or want to see what hooks are
664
- available (such as ` Resque.after_fork ` ), see
665
- [ PLUGINS .md] ( http://github.com/defunkt/resque/blob/master/PLUGINS .md ) .
663
+ If you'd like to write your own plugin, or want to customize Resque
664
+ using hooks (such as ` Resque.after_fork ` ), see
665
+ [ HOOKS .md] ( http://github.com/defunkt/resque/blob/master/HOOKS .md ) .
666
666
667
667
668
668
Namespaces
You can’t perform that action at this time.
0 commit comments