From e0416157942a4912bd01a800df6e8df17e781bc2 Mon Sep 17 00:00:00 2001 From: Krasimir Ivanov Date: Wed, 13 Mar 2024 10:03:13 +0200 Subject: [PATCH] debug --- script.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.go b/script.go index 759bf84b..b01dc244 100644 --- a/script.go +++ b/script.go @@ -221,7 +221,8 @@ func (processor *BackgroundProcessor) RunAsyncOrmConsumer() { if asyncConsumer.Digest(appService.GlobalContext) { log.Println("orm background consumer exited successfully") - break + time.Sleep(time.Second * 30) + continue } log.Println("orm background consumer can not obtain lock, sleeping for 30 seconds")