Skip to content

Commit

Permalink
Merge pull request #546 from matchID-project/fix/deploy-speed
Browse files Browse the repository at this point in the history
馃悗 speed up start putting restore logs in background
  • Loading branch information
rhanka committed Apr 10, 2021
2 parents cc55737 + 8b56d5f commit a2e5716
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -551,14 +551,14 @@ stats-update: stats-full-update stats-catalog

stats-background:
@if [ "${GIT_BRANCH}" = "${GIT_BRANCH_MASTER}" ]; then\
(make stats-restore || true);\
((make stats-full-init) > .stats-full 2>&1 &);\
((make stats-restore) > .stats-restore 2>&1 &);\
((sleep 200;make stats-full-init) > .stats-full 2>&1 &);\
((sleep 4800;while (true); do make stats-update;sleep 3600;done) > .stats-update 2>&1 &);\
((sleep 4800;while (true); do make stats-live;sleep 120;done) > .stats-live 2>&1 &);\
else\
(make stats-restore || true);\
((while (true); do make stats-update;sleep 3600;done) > .stats-update 2>&1 &);\
((while (true); do make stats-live;sleep 120;done) > .stats-live 2>&1 &);\
((make stats-restore) > .stats-restore 2>&1 &);\
((sleep 200;while (true); do make stats-update;sleep 3600;done) > .stats-update 2>&1 &);\
((sleep 200;while (true); do make stats-live;sleep 120;done) > .stats-live 2>&1 &);\
fi

${PROOFS}:
Expand Down

0 comments on commit a2e5716

Please sign in to comment.