Thanks! This helps, in so far that it gets the task started. It now says "Starting job worker". Progress! :) But, when I add a record to the database it doesn't actually add a delayed_jobs entry. So nothing gets processed and the index isn't updated. It doesn't complain. It just keeps running.
Any ideas? Melissa Op zaterdag 2 februari 2013 01:18:29 UTC+1 schreef Pat Allan het volgende: > > Ah, I should have clued into this sooner, sorry. One thing I've done with > the edge branch is removed that task, as it's just the same as what Delayed > Job provides with their own rake task anyway. So, just use their task :) > > rake jobs:work > > As for the index definition, there isn't a :delayed shortcut, so you need > to refer to the class directly: > > ThinkingSphinx::Index.define :mymodel, :with => :active_record, :delta > => ThinkingSphinx::Deltas::DelayedDelta do > > Cheers > > -- > Pat > > On 01/02/2013, at 10:49 AM, Melissa wrote: > > > Thanks. :) > > > > I upgraded and am now on: > > delayed_job (3.0.5) > > ts-delayed-delta (2.0.0.pre) > > > > also, didn't mention before: mysql2 0.3.12b4 > > > > However, the error remains, but now it says > > Don't know how to build task 'ts:dd', with the same trace. > > > > A question, is 'set_property :delta => :delayed' still used in the new > define block? > > > > And it seems I have to say: > > ThinkingSphinx::Index.define :mymodel, :with => :active_record, :delta > => true do > > and not: > > ThinkingSphinx::Index.define :mymodel, :with => :active_record, :delta > => delayed do > > Is that correct? > > > > Melissa > > > > Op donderdag 31 januari 2013 18:21:44 UTC+1 schreef Melissa het volgende: > > > > Since upgrading from Rails 2 to Rails 3 I haven't been able to get > delayed deltas to work, and I wonder if there is some incompatibility with > the different gems I'm using: > > rails 3.2.11 > > ts-delayed-delta 1.1.3 > > delayed_job 2.1.4 > > > > Thinking Sphinx can rebuild and start. > > It's just the delayed delta that's being difficult. > > > > This is what the error looks like: > > > > Don't know how to build task 'app_env' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task_manager.rb:49:in > > `[]' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:60:in > > `lookup_prerequisite' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:56:in > > `block in prerequisite_tasks' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:56:in > > `collect' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:56:in > > `prerequisite_tasks' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:185:in > > `invoke_prerequisites' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:165:in > > `block in invoke_with_call_chain' > > > /Users/myfolder/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/monitor.rb:211:in > `mon_synchronize' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:159:in > > `invoke_with_call_chain' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:187:in > > `block in invoke_prerequisites' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:185:in > > `each' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:185:in > > `invoke_prerequisites' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:165:in > > `block in invoke_with_call_chain' > > > /Users/myfolder/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/monitor.rb:211:in > `mon_synchronize' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:159:in > > `invoke_with_call_chain' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/task.rb:152:in > > `invoke' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/application.rb:143:in > > `invoke_task' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/application.rb:101:in > > `block (2 levels) in top_level' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/application.rb:101:in > > `each' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/application.rb:101:in > > `block in top_level' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/application.rb:110:in > > `run_with_threads' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/application.rb:95:in > > `top_level' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/application.rb:73:in > > `block in run' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/application.rb:160:in > > `standard_exception_handling' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/lib/rake/application.rb:70:in > > `run' > > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/gems/rake-10.0.3/bin/rake:33:in > `<top (required)>' > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/bin/rake:23:in `load' > > /Users/myfolder/.rvm/gems/ruby-1.9.3-p374/bin/rake:23:in `<main>' > > Tasks: TOP => ts:dd => thinking_sphinx:delayed_delta > > > > Any insights would be much appreciated! > > > > Melissa > > > > -- > > You received this message because you are subscribed to the Google > Groups "Thinking Sphinx" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] <javascript:>. > > To post to this group, send email to > > [email protected]<javascript:> > . > > Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en > . > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
