File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ class EventIndexJob < ApplicationJob
1313 def perform ( obj )
1414 log_prefix = "[Events:EventIndexJob]"
1515
16+ Rails . logger . info ( "#{ log_prefix } Indexing event: #{ obj . uuid } in OpenSearch" )
17+
1618 response = obj . __elasticsearch__ . index_document
1719
1820 if [ "created" , "updated" ] . exclude? ( response [ "result" ] )
1921 Rails . logger . error ( "#{ log_prefix } OpenSearch Error: #{ response . inspect } " )
22+ else
23+ Rails . logger . info ( "#{ log_prefix } Successfully indexed event: #{ obj . uuid } in OpenSearch" )
2024 end
2125 end
2226end
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ services:
1818 - AWS_REGION=us-east-1
1919 - AWS_ACCESS_KEY_ID=test
2020 - AWS_SECRET_ACCESS_KEY=test
21- - DISABLE_QUEUE_WORKER=
21+ - DISABLE_QUEUE_WORKER=false
2222 build :
2323 context : ./
2424 dockerfile : Dockerfile
Original file line number Diff line number Diff line change 22cd /home/app/webapp
33exec 2>&1
44# Disabled with DISABLE_QUEUE_WORKER, start shoryuken
5- if [ " $DISABLE_QUEUE_WORKER " = " true" ]; then
6- exec /sbin/setuser app bundle exec shoryuken -R -C config/shoryuken.yml
7- fi
5+ # if [ "$DISABLE_QUEUE_WORKER" = "true" ]; then
6+ # exec /sbin/setuser app bundle exec shoryuken -R -C config/shoryuken.yml
7+ # fi
8+
9+ exec /sbin/setuser app bundle exec shoryuken -R -C config/shoryuken.yml
You can’t perform that action at this time.
0 commit comments