Skip to content

Commit 149be24

Browse files
committed
sleep
1 parent ea3115a commit 149be24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ydb/library/yql/tools/dq/dq_cli/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <util/generic/guid.h>
1717
#include <util/string/split.h>
1818
#include <util/system/yassert.h>
19+
#include <util/random/random.h>
1920

2021
using namespace NYdbGrpc;
2122
using namespace Yql::DqsProto;
@@ -68,6 +69,7 @@ ClusterStatusResponse InfoWithReties(TServiceConnection<DqService>& service, ui3
6869
if (!future.HasException()) {
6970
break;
7071
}
72+
Sleep(TDuration::MilliSeconds(2000ul + RandomNumber(1000ul)));
7173
}
7274
return future.GetValue();
7375
}

0 commit comments

Comments
 (0)