Skip to content

Commit

Permalink
Merge pull request #153 from City-of-Helsinki/UHF-8525
Browse files Browse the repository at this point in the history
UHF-8525: PubSub cron
  • Loading branch information
tuutti authored Sep 6, 2023
2 parents f8c734a + 13f88f5 commit 22ed298
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 22ed298

Please sign in to comment.