Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-9576: Add cron job for linked events migration #215

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"cweagans/composer-patches": true,
"drupal/core-composer-scaffold": true,
"phpstan/extension-installer": true
},
"audit": {
"abandoned": "report"
}
},
"extra": {
Expand Down
2 changes: 2 additions & 0 deletions docker/openshift/crons/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 10 additions & 0 deletions docker/openshift/crons/linked-events.sh
Original file line number Diff line number Diff line change
@@ -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