pyres icon indicating copy to clipboard operation
pyres copied to clipboard

is there a before_first_fork or similar hook?

Open antant-shenzhen-2013 opened this issue 10 years ago • 2 comments

hi, is there a before_first_fork, where I can config database or others only once? like before_first_fork here https://github.com/resque/resque/blob/master/docs/HOOKS.md

OR is there any way to do it?

thx..

antant-shenzhen-2013 avatar Apr 12 '14 14:04 antant-shenzhen-2013

the hooks system has never been fully implemented. It's one of the goals of the 2.0 rewrite that I'm working on right now. Hopefully I will have a lot more to share in about a week.

binarymatt avatar Apr 12 '14 18:04 binarymatt

binarydud, i see. and thx for your hard work..

antant-shenzhen-2013 avatar Apr 13 '14 03:04 antant-shenzhen-2013