Skip to content

Commit 0b2f8fb

Browse files
committed
SUPP0RT-1261: Ensure feed imports has memory to complete
1 parent be0a568 commit 0b2f8fb

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

bin/read-all-feeds

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
#!/usr/bin/env bash
2-
dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
1+
#!/usr/bin/env sh
2+
3+
# This do not work when running through docker compose exec.
4+
# It defaults to /home/deploy and not the working dir.
5+
#
6+
#dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
7+
#
8+
# So for now lets assume we always are inside an ITKDev docker cotainer.
9+
dir=/app/bin
310

411
# Read all feeds one by one to isoloate any fatal errors thrown when reading a feed.
512
for id in $($dir/console events:feed:read --list | grep '^id:' | sed 's/^id: *//'); do
6-
$dir/console events:feed:read --id=$id
13+
php -d memory_limit=-1 $dir/console events:feed:read --id=$id
714
done

0 commit comments

Comments
 (0)