मयंक जैन (makuchaku)
2007-Dec-30 11:40 UTC
[Backgroundrb-devel] A newbie question regarding BackgroundRb
Hi all, I just read Ezra''s article on BackgroundRb and decided to use it one of my projects. I installed the plugin into my rails project using script/plugin and then ran rake backgroundrb:setup to copy the yml scripts. Now my backgroundrb.yml looks like ======--- port: "22222" timer_sleep: 60 load_rails: true environment: development host: localhost database_yml: config/database.yml acl: deny: all allow: localhost 127.0.0.1 order: deny,allow scheduled_task: :class: :tx_reaper_worker :worker_method: :do_work :trigger_args: :start: <%= Time.now %> :repeat_interval: <%= 1.second % ====== TxReaperWorker is my class which I generated. ======class TxReaperWorker < BackgrounDRb::Rails def do_work(args) puts "Hello BackgroundRb" end end ====== I started my rails app using rake backgroundrb:start script/server However, I am unable to view the output of "puts" anywhere. I can connect successfully to localhost:22222 but cannot see anything happening. Neither anything shown up on the app''s output, nor on the log/backgroundrb.log file. However, the logfile does shows that "Log file created...". Am I missing any step? Doing anything wrong? Thanks in advance :) -- Maku http://www.makuchaku.info/blog http://www.apnabill.com - A startup!
Geoff Garside
2007-Dec-30 12:22 UTC
[Backgroundrb-devel] A newbie question regarding BackgroundRb
Did you follow on from http://backgroundrb.rubyforge.org/ or not? BackgrounDRb has been massively overhauled and improved by Hemant. Ezra''s article might be related to 0.20 instead of the 1.0 version we have now. Geoff On 30 Dec 2007, at 11:40, ???? ??? (makuchaku) wrote:> Hi all, > > I just read Ezra''s article on BackgroundRb and decided to use it one > of my projects. I installed the plugin into my rails project using > script/plugin and then ran rake backgroundrb:setup to copy the yml > scripts. > > Now my backgroundrb.yml looks like > ======> --- > port: "22222" > timer_sleep: 60 > load_rails: true > environment: development > host: localhost > database_yml: config/database.yml > acl: > deny: all > allow: localhost 127.0.0.1 > order: deny,allow > > scheduled_task: > :class: :tx_reaper_worker > :worker_method: :do_work > :trigger_args: > :start: <%= Time.now %> > :repeat_interval: <%= 1.second % > ======> > TxReaperWorker is my class which I generated. > > ======> class TxReaperWorker < BackgrounDRb::Rails > def do_work(args) > puts "Hello BackgroundRb" > end > end > ======> > I started my rails app using > rake backgroundrb:start > script/server > > However, I am unable to view the output of "puts" anywhere. I can > connect successfully to localhost:22222 but cannot see anything > happening. Neither anything shown up on the app''s output, nor on the > log/backgroundrb.log file. > However, the logfile does shows that "Log file created...". > > Am I missing any step? Doing anything wrong? > > Thanks in advance :) > > -- > Maku > http://www.makuchaku.info/blog > http://www.apnabill.com - A startup! > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel
hemant kumar
2007-Dec-30 12:39 UTC
[Backgroundrb-devel] A newbie question regarding BackgroundRb
On Sun, 2007-12-30 at 17:10 +0530, ???? ??? (makuchaku) wrote:> Hi all, > > I just read Ezra''s article on BackgroundRb and decided to use it one > of my projects. I installed the plugin into my rails project using > script/plugin and then ran rake backgroundrb:setup to copy the yml > scripts. > > Now my backgroundrb.yml looks like > ======> --- > port: "22222" > timer_sleep: 60 > load_rails: true > environment: development > host: localhost > database_yml: config/database.yml > acl: > deny: all > allow: localhost 127.0.0.1 > order: deny,allow > > scheduled_task: > :class: :tx_reaper_worker > :worker_method: :do_work > :trigger_args: > :start: <%= Time.now %> > :repeat_interval: <%= 1.second % > ======> > TxReaperWorker is my class which I generated. > > ======> class TxReaperWorker < BackgrounDRb::Rails > def do_work(args) > puts "Hello BackgroundRb" > end > end > ======> > I started my rails app using > rake backgroundrb:start > script/server > > However, I am unable to view the output of "puts" anywhere. I can > connect successfully to localhost:22222 but cannot see anything > happening. Neither anything shown up on the app''s output, nor on the > log/backgroundrb.log file. > However, the logfile does shows that "Log file created...". > > Am I missing any step? Doing anything wrong? > > Thanks in advance :) >You are using VERY old version of plugin, can you please checkout details regarding new version from: http://backgroundrb.rubyforge.org
मयंक जैन (makuchaku)
2008-Jan-03 06:09 UTC
[Backgroundrb-devel] A newbie question regarding BackgroundRb
Hi Hemat, Geoff, Thanks for the tip - I''ll make sure that I am on the latest version :) -- Maku On 12/30/07, hemant kumar <gethemant at gmail.com> wrote:> > On Sun, 2007-12-30 at 17:10 +0530, ???? ??? (makuchaku) wrote: > > Hi all, > > > > I just read Ezra''s article on BackgroundRb and decided to use it one > > of my projects. I installed the plugin into my rails project using > > script/plugin and then ran rake backgroundrb:setup to copy the yml > > scripts. > > > > Now my backgroundrb.yml looks like > > ======> > --- > > port: "22222" > > timer_sleep: 60 > > load_rails: true > > environment: development > > host: localhost > > database_yml: config/database.yml > > acl: > > deny: all > > allow: localhost 127.0.0.1 > > order: deny,allow > > > > scheduled_task: > > :class: :tx_reaper_worker > > :worker_method: :do_work > > :trigger_args: > > :start: <%= Time.now %> > > :repeat_interval: <%= 1.second % > > ======> > > > TxReaperWorker is my class which I generated. > > > > ======> > class TxReaperWorker < BackgrounDRb::Rails > > def do_work(args) > > puts "Hello BackgroundRb" > > end > > end > > ======> > > > I started my rails app using > > rake backgroundrb:start > > script/server > > > > However, I am unable to view the output of "puts" anywhere. I can > > connect successfully to localhost:22222 but cannot see anything > > happening. Neither anything shown up on the app''s output, nor on the > > log/backgroundrb.log file. > > However, the logfile does shows that "Log file created...". > > > > Am I missing any step? Doing anything wrong? > > > > Thanks in advance :) > > > > You are using VERY old version of plugin, can you please checkout > details regarding new version from: > > http://backgroundrb.rubyforge.org > > > >