diff --git a/composer.json b/composer.json index 5371d27..7c65454 100644 --- a/composer.json +++ b/composer.json @@ -43,6 +43,9 @@ "cweagans/composer-patches": true, "drupal/core-composer-scaffold": true, "phpstan/extension-installer": true + }, + "audit": { + "abandoned": "report" } }, "extra": { diff --git a/docker/openshift/crons/base.sh b/docker/openshift/crons/base.sh index 54e5194..2021d03 100644 --- a/docker/openshift/crons/base.sh +++ b/docker/openshift/crons/base.sh @@ -20,6 +20,8 @@ echo "Starting cron: $(date)" # Uncomment this to enable TPR migration cron #exec "/crons/migrate-tpr.sh" & +# Uncomment this to enable linked events migrations cron +#exec "/crons/linked-events.sh" & # Uncomment this to enable Varnish purge cron #exec "/crons/purge-queue.sh" & # Uncomment this to enable automatic translation updates. diff --git a/docker/openshift/crons/linked-events.sh b/docker/openshift/crons/linked-events.sh new file mode 100644 index 0000000..4eecbdf --- /dev/null +++ b/docker/openshift/crons/linked-events.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +while true +do + # Allow migrations to be run every 3 hours and reset stuck migrations every 12 hours. + drush migrate:import linked_events_keywords --interval 10800 --reset-threshold 43200 --no-progress + + # Sleep for 12 hours + sleep 86400 +done