Skip to content

Commit

Permalink
Merge pull request #326 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 96a8905 + 742b058 commit 2078599
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 59 deletions.
102 changes: 51 additions & 51 deletions composer.lock

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

Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ id: helfi_announcements
label: 'Helfi: Announcements'
label_plural: 'Helfi: Announcements'
description: ''
generate_aliases: null
read_only: true
generate_aliases: null
field_mapper_id: jsonpath
field_mapper_config:
field_mappings:
Expand Down

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,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 2078599

Please sign in to comment.