Skip to content

Commit

Permalink
simplify es-indexer startup behavior (#4181)
Browse files Browse the repository at this point in the history
before it would attempt to block server + celery start by running in
catchup mode, but if this failed it would prevent es-indexer from
starting and no indexer would run.

simply start es-indexer normally... if we want more coordination we can
do it in application code.  This is how it will be if es-indexer is in a
standalone container also.
  • Loading branch information
stereosteve committed Oct 27, 2022
1 parent 261a83c commit ca7f6b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions discovery-provider/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,8 @@ fi

# start es-indexer
if [[ "$audius_elasticsearch_url" ]] && [[ "$audius_elasticsearch_run_indexer" ]]; then
# npm run catchup creates triggers + populate indexes - this blocks server / celery start
# npm start gets backgrounded and goes into listen mode
(
cd es-indexer && npm run catchup && npm start &
cd es-indexer && npm start &
)
fi

Expand Down

0 comments on commit ca7f6b4

Please sign in to comment.