Skip to content

Commit

Permalink
UHF-8525: PubSub cron
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Sep 5, 2023
1 parent 16291ee commit 116918b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker/openshift/crons/pubsub.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

echo "Running PubSub daemon: $(date +'%Y-%m-%dT%H:%M:%S%:z')"

i=0
# Attempt to start this service five times.
until [ $i -gt 5 ]
do
drush helfi:azure:pubsub-listen

if [[ "$?" -ne 0 ]]; then
((i=i+1))
sleep 10
fi
done

0 comments on commit 116918b

Please sign in to comment.