Hi Sundar, Thanks for all the detail - that sounds like a good approach to me!
TS makes a point of removing the guard files if Ruby exceptions are raised, but I guess the forced stop of DJ is a little more sudden. I guess it’d be nice to have this scenario managed by TS as well - I’m just a little unsure as to whether the extra complexity is worthwhile and can be reliable. Still, I’d be interested in seeing any patches for such an approach. In the meantime though, what you’ve suggested sounds wise to me :) — Pat > On 28 Oct. 2016, at 7:44 am, Sundar Rajamanickam > <sundar.rajamanic...@chronus.com <mailto:sundar.rajamanic...@chronus.com>> > wrote: > > Hi Pat > > Hope you are doing good! > > I recently encountered an issue because of stale guard files. > > Setup: > > We deploy everyday and during deployment, we restart DJ workers. And, we have > dedicated Sphinx DJ workers. > > thinking-sphinx 3.2.0 > ts-delayed-delta 2.0.2 > > Issue: > > Assuming that DJ is forcefully stopped during the execution of say, > article_delta indexing - the guard file ts-article_delta.tmp is not removed > and stays stale. I was thinking of the following workaround for deployment - > > - Stop DJ > - Cleanup stale guard files > - Re-enqueue the locked jobs in Sphinx DJ queue > - Start DJ > > Please let me know if this will help or suggest any workaround. > > Thanks > Sundar Rajamanickam > > -- > 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 thinking-sphinx+unsubscr...@googlegroups.com > <mailto:thinking-sphinx+unsubscr...@googlegroups.com>. > To post to this group, send email to thinking-sphinx@googlegroups.com > <mailto:thinking-sphinx@googlegroups.com>. > Visit this group at https://groups.google.com/group/thinking-sphinx > <https://groups.google.com/group/thinking-sphinx>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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 thinking-sphinx+unsubscr...@googlegroups.com. To post to this group, send email to thinking-sphinx@googlegroups.com. Visit this group at https://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/d/optout.