From 0df041e49c5c3db2ce14a5036d2d051848b3c341 Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Thu, 14 Mar 2024 08:55:01 +0200 Subject: [PATCH 1/2] Add cron job for linked events migration --- docker/openshift/crons/base.sh | 2 ++ docker/openshift/crons/linked-events.sh | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 docker/openshift/crons/linked-events.sh 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 From 985b919ee16fa843a91dd02269a7d6bece239751 Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Thu, 14 Mar 2024 09:23:56 +0200 Subject: [PATCH 2/2] Change composer audit abandoned to report phpunit is required by drupal/core-dev. This package requires abandoned package sebastian/resource-operations' --- composer.json | 3 +++ 1 file changed, 3 insertions(+) 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": {