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
Size: 341
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Uses the purl-fetcher API to dispatch publication events to indexing services, such as sw-indexer.
To deploy the application, use:
clone https://github.com/sul-dlss/discovery-dispatcher.git
iscovery-dispatcher
le install
le exec cap [environment] deploy
Configuration is handled using the config gem. Per server settings are stored in shared_configs using normalized DLSS practices.
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
To setup your development environment, use:
db:migrate
S_ENV=test rake db:migrate
spec
s s
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