search for: receive_internal_data

Displaying 7 results from an estimated 7 matches for "receive_internal_data".

2008 Jan 17
2
Inconsistent Model creation behavior
...ns/backgroundrb/ server/meta_worker.rb:223:in `process_request'' from /Users/BBryant/Sites/date_site/trunk/vendor/plugins/backgroundrb/ server/meta_worker.rb:207:in `receive_data'' from /Users/BBryant/Sites/date_site/trunk/vendor/plugins/backgroundrb/ framework/worker.rb:54:in `receive_internal_data'' from /Users/BBryant/Sites/date_site/trunk/vendor/plugins/BackgrounDRB/ lib/../framework/bin_parser.rb:29:in `call'' from /Users/BBryant/Sites/date_site/trunk/vendor/plugins/BackgrounDRB/ lib/../framework/bin_parser.rb:29:in `extract'' from /Users/BBryant/Sites/date_si...
2007 Dec 25
6
error: no marshal_dump is defined for class Thread
.../plugins/backgroundrb/server/meta_worker.rb:224:in `process_request'' /var/www/apps/rpg/releases/20071224050255/vendor/plugins/backgroundrb/server/meta_worker.rb:202:in `receive_data'' /var/www/apps/rpg/releases/20071224050255/vendor/plugins/backgroundrb/framework/worker.rb:54:in `receive_internal_data'' /var/www/apps/rpg/releases/20071224050255/vendor/plugins/backgroundrb/lib/../framework/bin_parser.rb:29:in `call'' /var/www/apps/rpg/releases/20071224050255/vendor/plugins/backgroundrb/lib/../framework/bin_parser.rb:29:in `extract'' /var/www/apps/rpg/releases/2007122405...
2007 Oct 31
4
How you want BackgrounDrb to behave
...ker < Packet::Worker set_worker_name :newsletter_worker def worker_init puts "starting the worker" end def receive_data p_data end # this is where a request from rails will be received. so implement this method # if you want to trigger your workers from rails. def receive_internal_data p_data self.send(p_data[:method],p_data[:data]) end def send_mail data end end And you can invoke a method in worker from rails using: # invoke method send_mail in newsletter_worker WorkerProxy.send_request(:worker => :newsletter_worker, :method => :send_mail, :data => @newslet...
2008 Apr 04
0
Can''t get backgroundrb to work with rails plugin ''batched_sql_fu''
.../vendor/plugins/backgroundrb/ server/lib/meta_worker.rb:235:in `process_request'' from /Users/jdonalds/Sites/3dial_ads/vendor/plugins/backgroundrb/ server/lib/meta_worker.rb:219:in `receive_data'' from /Library/Ruby/Gems/1.8/gems/packet-0.1.5/lib/packet/ packet_worker.rb:53:in `receive_internal_data'' from /Library/Ruby/Gems/1.8/gems/packet-0.1.5/lib/packet/ packet_parser.rb:29:in `call'' from /Library/Ruby/Gems/1.8/gems/packet-0.1.5/lib/packet/ packet_parser.rb:29:in `extract'' ... 24 levels... from /Library/Ruby/Gems/1.8/gems/packet-0.1.5/lib/packet/ packet_ma...
2007 Dec 06
10
Feedback on RC2
I tried to upgrade my existing application to RC2 last night. Like many, I use this mostly for running scheduled tasks. For the moment, I''ve abandoned the effort, but am looking forward to being able to use this. Feedback below: First, the reason I was looking forward to this upgrade was to use the threaded scheduler. I have an application with long-running tasks. I found that
2008 Dec 26
4
''stack level too deep'' error
...ackgroundrb/server/lib/log_worker.rb:17:in`process_request'' from /home/raghus/public_html/ feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/log_worker.rb:10:in`receive_data'' from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_worker.rb:56:in `receive_internal_data'' from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_parser.rb:38:in `call'' ... 13 levels... from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:47:in `new'' from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bi...
2007 Dec 28
9
lost connection 2.0
I lost my "connection lost" error.. but now I''ve got a "Mysql::Error: MySQL server has gone away" error.. It comes from: /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract_adapter.rb:128:in ''log''. I''m not sure if Rails / BackgroundRb uses it .. but i''ve got the mysql (2.7) gem