Any ideas why Thinking Sphinx Rake tasks are not running?

前端 未结 5 1000
离开以前
离开以前 2021-02-15 12:21

I\'m finding that Thinking Sphinx sometimes errors out when I try to run its Rake tasks. Sometimes the tasks work fine, and sometimes I get errors like the one below.

I\

5条回答
  •  梦谈多话
    2021-02-15 13:11

    In thinking_sphinx 1.4.4 there is a 5 second timeout on rake ts:stop

    If rake ts:stop takes close to or longer than 5 seconds, ruby will throw an exception.

    I'm using the thinking_sphinx 1.3.18 in the meantime. (there is no timeout on 1.3.18).

    Also I have submitted a patch to the github repository and the timeout will be configurable with a sphinx.yml configuration variable stop_timeout.

    NOTE: rake ts:rebuild == rake ts:stop; rake ts:index; rake ts:start

提交回复
热议问题