Skip to content

Commit

Permalink
Merge pull request #446 from City-of-Helsinki/update-configuration
Browse files Browse the repository at this point in the history
Automatic update
  • Loading branch information
rpnykanen authored Oct 5, 2023
2 parents 393ba1d + 2067184 commit 6a380ac
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 66 deletions.
126 changes: 63 additions & 63 deletions composer.lock

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

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,4 +15,3 @@ disable_language_hreflang: false
excluded_languages: { }
enabled_entity_types:
- node
- menu_link_content
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 6a380ac

Please sign in to comment.