From 2506df5a4ebb5c90c314c4a3b5906a4de1c7cb89 Mon Sep 17 00:00:00 2001 From: Adrienne Date: Fri, 13 Dec 2024 00:59:49 -0500 Subject: [PATCH] PGOV-314: get rid of cronish app, enable automated cron, update bootstrap.script and manifest --- bootstrap.sh | 9 +++------ composer.lock | 6 +++--- config/automated_cron.settings.yml | 3 +++ config/core.extension.yml | 1 + cronish.sh | 8 -------- manifest.yml | 8 +------- 6 files changed, 11 insertions(+), 24 deletions(-) create mode 100644 config/automated_cron.settings.yml delete mode 100644 cronish.sh diff --git a/bootstrap.sh b/bootstrap.sh index 2b5a6011..013dd3e3 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -162,12 +162,9 @@ fi drush deploy # Complete the migration of files -drush migrate:import files -drush migrate:import media -drush migrate:import plan_files - -# Make cron script runnable -chmod +x ./../cronish.sh +drush migrate:import --update files +drush migrate:import --update media +drush migrate:import --update plan_files if [ "${verbose+isset}" ] && [ "${verbose}" -ge 1 ] then diff --git a/composer.lock b/composer.lock index aff8b8a4..c6057515 100644 --- a/composer.lock +++ b/composer.lock @@ -16304,7 +16304,7 @@ }, "prefer-stable": true, "prefer-lowest": false, - "platform": [], - "platform-dev": [], - "plugin-api-version": "2.3.0" + "platform": {}, + "platform-dev": {}, + "plugin-api-version": "2.6.0" } diff --git a/config/automated_cron.settings.yml b/config/automated_cron.settings.yml new file mode 100644 index 00000000..19b8046e --- /dev/null +++ b/config/automated_cron.settings.yml @@ -0,0 +1,3 @@ +_core: + default_config_hash: fUksROt4FfkAU9BV4hV2XvhTBSS2nTNrZS4U7S-tKrs +interval: 0 diff --git a/config/core.extension.yml b/config/core.extension.yml index d224c1f8..26f52c67 100644 --- a/config/core.extension.yml +++ b/config/core.extension.yml @@ -2,6 +2,7 @@ _core: default_config_hash: 4GIX5Esnc_umpXUBj4IIocRX7Mt5fPhm4AgXfE3E56E module: announcements_feed: 0 + automated_cron: 0 basic_auth: 0 better_exposed_filters: 0 big_pipe: 0 diff --git a/cronish.sh b/cronish.sh deleted file mode 100644 index 792bead3..00000000 --- a/cronish.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -set -euo pipefail - -while true -do - drush --root=$HOME/web core:cron - sleep 15m -done diff --git a/manifest.yml b/manifest.yml index b5744273..65b5b1e3 100644 --- a/manifest.yml +++ b/manifest.yml @@ -21,13 +21,7 @@ applications: - name: PGOV-CMS <<: *defaults memory: 512M - instances: 2 - - name: cronish - <<: *defaults - no-route: true - command: ./cronish.sh - health-check-type: process - memory: 128M + instances: 1 - name: PGOV-Frontend path: ./src/frontend memory: 256M