Skip to content

Commit 9806225

Browse files
committed
fix(ci): add cron jobs
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent dda28b2 commit 9806225

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/integration-test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,18 @@ jobs:
204204
ps -p $(cat pid.txt) -o pid,cmd,%mem,rss --sort=-%mem
205205
ps -p $(cat pid.txt) -o %mem --no-headers > initial_mem.txt
206206
207+
- name: Run cron jobs
208+
run: |
209+
# every 10 seconds indefinitely
210+
while true; do
211+
php cron.php
212+
sleep 10
213+
done &
214+
207215
- name: Periodically check context_chat stats for 15 minutes to allow the backend to index the files
208216
run: |
209217
success=0
218+
echo "::group::Checking stats periodically for 15 minutes to allow the backend to index the files"
210219
for i in {1..90}; do
211220
echo "Checking stats, attempt $i..."
212221
@@ -277,6 +286,10 @@ jobs:
277286
sleep 10
278287
done
279288
289+
echo "::endgroup::"
290+
291+
./occ context_chat:stats
292+
280293
if [ $success -ne 1 ]; then
281294
echo "Max attempts reached"
282295
exit 1

0 commit comments

Comments
 (0)