Replies: 1 comment
-
Thanks for following up. I agree that we need to clearly state the life cycle guarantees. Falcon needs to enforce those guarantees, but some types of process restart may cause immediate shutdown. For
Because
Can you share more details about what you want to do in your Regarding |
Beta Was this translation helpful? Give feedback.
-
Continuing from #129
Didn't know that would work actually, thank you!
I think this makes sense. It seems like
preload.rb
handles the use case ofbefore_fork
, but what aboutafter_fork
?For example, when preloading our app, DB schemas / types are inferred and setup by Sequel. In order to do this, it establishes a DB connection. However, we need to disconnect from the socket after a process is forked. How could I accomplish this with Falcon?
Fair enough, it's not a deal-breaker by any means for us. I actually think this may "just work" if I could figure out the correct preloading hooks, etc. I'll give it another shot.
Beta Was this translation helpful? Give feedback.
All reactions