Simplify keeping whoosh up-to-date

Issue #460 wontfix
Gili created an issue

Please add an option to automatically trigger an incremental update to whoosh every time a repository is updated by a user.

Also, it would help if you could wrap cron on Linux and some other scheduling mechanism under Windows so we could configure timed whoosh updates in a cross-platform manner.

Comments (2)

  1. Marcin Kuzminski repo owner

    I recommend that you write such solution yourself, rhodecode extensions give you plugable access to post-push hook. I recommend you write your own logic inside, that will execute (or even better mark somewhere for later async execution) which repo should be reindexed. This info is passed into rcext hook.

    Then handle reindexing in some other process because it's heavy.

    I will not write a crontab replacement in rhodecode because there are already existing solutions. eg: http://stackoverflow.com/questions/373335/suggestions-for-a-cron-like-scheduler-in-python

  2. Gili reporter

    Marcin,

    The point here is to provide a cross-platform solution on behalf of users, instead of asking each one of them to reimplement this basic piece of functionality. As you mentioned, there are already some good solutions on Stackoverflow, so why not fold one of them into rhodecode?

  3. Log in to comment