sul-dlss/discovery-dispatcher

Name: discovery-dispatcher

Owner: Stanford University Digital Library

Description: Routes PURL indexing requests to the appropriate indexing services.

Created: 2015-03-25 23:58:16.0

Updated: 2018-05-22 20:40:37.0

Pushed: 2018-05-22 20:40:38.0

Homepage:

Size: 341

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status Coverage Status

Discovery Dispatcher

Uses the purl-fetcher API to dispatch publication events to indexing services, such as sw-indexer.

Deployment

To deploy the application, use:

clone https://github.com/sul-dlss/discovery-dispatcher.git
iscovery-dispatcher
le install
le exec cap [environment] deploy
Configuration

Configuration is handled using the config gem. Per server settings are stored in shared_configs using normalized DLSS practices.

Sidekiq

We provide a basic jobs management UI – go to /.

To query purl-fetcher for new jobs to enqueue, use:

 discovery_dispatcher:query_purl_fetcher

Note that config/schedule.rb will run this command automatically in deployed environments.

To restart the background processes, use:

[environment] sidekiq:restart
Development

To setup your development environment, use:

 db:migrate
S_ENV=test rake db:migrate
Running tests
 spec
Starting server
s s
Reindexing with Discovery Dispatcher

If you deploy a new index and want to reindex everything, this can be accomplished by doing the following:

Clear out the log reader

le exec rake discovery_dispatcher:clear_reader_logs

Clear out Sidekiq

le exec rake discovery_dispatcher:clear_sidekiq

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.