Skip to content

Commit 7158bd8

Browse files
committed
Worker Hooks get their own section
1 parent 38cf161 commit 7158bd8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.markdown

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,9 @@ this way we can tell our Sinatra app about the config file:
648648

649649
Now everyone is on the same page.
650650

651+
Worker Hooks
652+
------------
653+
651654
If you wish to have a Proc called before the worker forks for the
652655
first time, you can add it in the initializer like so:
653656

@@ -679,6 +682,7 @@ All hooks can also be set using a setter, e.g.
679682

680683
Resque.after_fork = proc { puts "called" }
681684

685+
682686
Namespaces
683687
----------
684688

@@ -797,4 +801,4 @@ Chris Wanstrath :: [email protected] :: @defunkt
797801
[2]: http://github.com/defunkt/resque/issues
798802
[sv]: http://semver.org/
799803
[rs]: http://github.com/defunkt/redis-namespace
800-
[cb]: http://wiki.github.com/defunkt/resque/contributing
804+
[cb]: http://wiki.github.com/defunkt/resque/contributing

0 commit comments

Comments
 (0)