Jonathan Donaldson
2008-Apr-04 02:30 UTC
[Backgroundrb-devel] Can''t get backgroundrb to work with rails plugin ''batched_sql_fu''
Trying to use backgroundrb to process and insert a large list of bulk records, but when I try to use it with the batched_sql_fu plugin installed in vendor/plugins, I get the following error: ---SNIP--- /Users/jdonalds/Sites/3dial_ads/config/../vendor/plugins/ batched_sql_fu/lib/batched_sql_fu/active_record.rb:22:in `alias_insert_sql_to_batched_version!'': undefined method `insert_sql'' for class `ActiveRecord::ConnectionAdapters::MysqlAdapter'' (NameError) from /Users/jdonalds/Sites/3dial_ads/config/../vendor/plugins/ batched_sql_fu/lib/batched_sql_fu/active_record.rb:8:in `insert_by_batch'' from /Users/jdonalds/Sites/3dial_ads/lib/workers/ process_list_worker.rb:249:in `process_leads'' from /Users/jdonalds/Sites/3dial_ads/vendor/plugins/backgroundrb/ server/lib/meta_worker.rb:235:in `send'' from /Users/jdonalds/Sites/3dial_ads/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_master.rb:21:in `run'' from /Users/jdonalds/Sites/3dial_ads/vendor/plugins/backgroundrb/ server/lib/master_worker.rb:166:in `initialize'' from script/backgroundrb:60:in `new'' from script/backgroundrb:60 ---SNIP-- The code in the worker works as expected when called directly.... Jonathan Donaldson: CTO at Column3, SMB VoIP Communications ASP contact | jonathan at column3.net - 617-507-6707 | yahoo - jonathan.donaldson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080403/7b5c5153/attachment.html