Skip to content

Commit

Permalink
Merge pull request #452 from City-of-Helsinki/update-configuration
Browse files Browse the repository at this point in the history
Automatic update
  • Loading branch information
hyrsky authored Oct 3, 2023
2 parents fc8c7d1 + 6dd84a1 commit 9f9b344
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 61 deletions.
100 changes: 50 additions & 50 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion conf/cmi/simple_sitemap.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ disable_language_hreflang: false
excluded_languages: { }
enabled_entity_types:
- node
- menu_link_content
- tpr_service
- tpr_unit
11 changes: 9 additions & 2 deletions docker/openshift/crons/purge-queue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ function has_items {
while true
do
if has_items; then
drush p:queue-work --no-interaction --finish --format=json | jq --arg DATE "$(date +'%Y-%m-%dT%H:%M:%S%:z')" -c '.[] |= . + {"date" : $DATE}'
RESULT=$(drush p:queue-work --no-interaction --finish --format=json | jq --arg DATE "$(date +'%Y-%m-%dT%H:%M:%S%:z')" -c '.[] |= . + {"date" : $DATE}')
# RESULT is an array of json objects. Process each result and
# only output the failed items.
echo $RESULT | jq -c '.[]' | while read LINE; do
if [ $(echo "$LINE" | jq .failed) -gt "0" ]; then
echo $LINE
fi
done
fi
# Sleep for 60 seconds.

sleep 60
done

0 comments on commit 9f9b344

Please sign in to comment.