Here's the code that should trigger the update but appears to not be doing 
so:

on_transition do |from, to, triggering_event, *event_args| 
   unless from == to 
      ThinkingSphinx::RealTime.callback_for(:scapp) 
   end 
end 

On Saturday, February 17, 2024 at 7:35:28 PM UTC-5 stasch wrote:

It looks like it may be an issue with the workflow gem. We're trying to use 
the on transition event to run the callback that updates the index. It 
seems to not be running. If we happen to make another change to the record 
(besides the status) then the after save callback updates the index. If all 
we're changing is the status (the workflow transition) then the index 
doesn't update. Any thoughts?

On Saturday, February 17, 2024 at 8:46:44 AM UTC-5 stasch wrote:

Updates still not working in sandbox environment. Everything is identical 
to staging environment except using a different port.

On Friday, February 16, 2024 at 3:21:52 PM UTC-5 stasch wrote:

It's been over 3 hours and index has still not updated. The setup is 
identical to my staging environment in which it is working perfectly 
(although it took a couple of hours to get going).

On Friday, February 16, 2024 at 12:25:44 PM UTC-5 stasch wrote:

I switched over from SQLbacked  to realtime indexes. It worked well in my 
development environment. I then deployed the changes to a staging site. I 
deleted everything in the binlog/staging directory and the 
db/sphinx/staging directory and did a ts:rebuild. For quite some time 
changes that I made to one of the indexed fields in one of the models 
didn't get picked up when I filtered that model on the change. It remained 
in the search results for the old value of the field. I was ready to throw 
in the towel when suddenly everything started working correctly! After a 
couple of hours!?

That was yesterday. Today I deployed the same changes to a sandbox site, 
doing exactly what I did on the staging site,  and I'm experiencing the 
same problem. It's been about well over an hour since I made a change and 
it's not showing up in the search results. Hopefully it will start working 
like the staging site did, but .....

Is there anything I can do to prevent this delay? Or at least monitor it 
somehow?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/thinking-sphinx/a2373d21-ecb2-4938-86a4-6f39d8834c9fn%40googlegroups.com.

Reply via email to