I would like to think about whether using fork {} in the 'background' process from the rails application is such a good idea or not ...
From what I am collecting fork {my_method; The process #setsid} really does what it should do.
1) creates other processes with a different PID
2) does not interrupt the calling process (for example, it continues without waiting for the plug to complete)
3) performs the child process until it finishes
.. It's cool, but is it a good idea? What exactly does the plug do? Does it create a duplicate instance of my entire mongrel / passenger rail in mind? If so, that would be very bad. Or does it somehow do this without consuming a huge amount of memory.
My ultimate goal was to end my daemon / queue system in the background in favor of marking up these processes (primarily sending emails), but if that doesn't save memory, then this is definitely a step in the wrong direction
ruby ruby-on-rails background delayed-job backgroundrb
jsharpe
source share