At work, we use BackgroundRb on a server to kick off long running tasks. This runs on a backend server. I wrote some code that can start, stop and manage workers, but noticed that when a task is running, calling a self defined method on the worker object is possible. However, on long running and intensive tasks, the call to this method blocks. The strange thing is that the method is executed, eventhough the task is still running, but the timing of the call seems unpredictable. I haven't looked at the backgroundrb code yet, but in my case using results[] was a better option.
Archive for the 'ruby' Category Page 2 of 2
Sinds een paar weken zit ik bij CareerNetwork/NoXa, beetje Ruby, beetje Rails, beetje Linux, allemaal erg tof. Zo tof dat er mensen bij moeten; meer toffe mensen. Nu weet ik dat er wel wat geeks mijn blog lezen en daarom dus (wederom) een shameless plug. Dus, om even de recruiter in mij naar boven te halen: "Ben jij die sexy Rails programmeur, creatief en houd je van hipness? Dan zoeken we jou!!" (voor meer info, stuur me even een mailtje op railsgast@evenflow.nl)
Today, I created Net::SMTPSever for Ruby. This is a raw port of Perl's Net::SMTP::Server module by MacGyver (aka Habeeb J. Dihu). I will improve my implementation in the future weeks/months, but since I needed this stuff and couldn't find any Ruby implementation, I coded it myself. Both a source tarball and a RubyGem can be found at http://www.evenflow.nl/dev.
Recent Comments