From 0b2f8fbc48dd267f56537cf8bc6958aff08f8e35 Mon Sep 17 00:00:00 2001 From: Jesper Kristensen Date: Wed, 25 Oct 2023 16:09:23 +0200 Subject: [PATCH] SUPP0RT-1261: Ensure feed imports has memory to complete --- bin/read-all-feeds | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/bin/read-all-feeds b/bin/read-all-feeds index 75ebb7dc..433d72f8 100755 --- a/bin/read-all-feeds +++ b/bin/read-all-feeds @@ -1,7 +1,14 @@ -#!/usr/bin/env bash -dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd) +#!/usr/bin/env sh + +# This do not work when running through docker compose exec. +# It defaults to /home/deploy and not the working dir. +# +#dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd) +# +# So for now lets assume we always are inside an ITKDev docker cotainer. +dir=/app/bin # Read all feeds one by one to isoloate any fatal errors thrown when reading a feed. for id in $($dir/console events:feed:read --list | grep '^id:' | sed 's/^id: *//'); do - $dir/console events:feed:read --id=$id + php -d memory_limit=-1 $dir/console events:feed:read --id=$id done