2024-07-18 10:08:31 +00:00
|
|
|
print ====check task status start
|
|
|
|
|
|
|
|
|
|
$loop_count = 0
|
|
|
|
|
|
|
|
|
|
loopCheck0:
|
|
|
|
|
|
2024-07-19 01:23:46 +00:00
|
|
|
print loop_count=$loop_count
|
2024-07-18 10:08:31 +00:00
|
|
|
sleep 1000
|
|
|
|
|
|
|
|
|
|
$loop_count = $loop_count + 1
|
2024-07-19 00:55:26 +00:00
|
|
|
if $loop_count == 60 then
|
|
|
|
|
return 1
|
2024-07-18 10:08:31 +00:00
|
|
|
endi
|
|
|
|
|
|
|
|
|
|
print 1 select * from information_schema.ins_stream_tasks;
|
|
|
|
|
sql select * from information_schema.ins_stream_tasks;
|
|
|
|
|
|
|
|
|
|
if $rows == 0 then
|
|
|
|
|
print rows=$rows
|
|
|
|
|
goto loopCheck0
|
|
|
|
|
endi
|
|
|
|
|
|
|
|
|
|
print 1 select * from information_schema.ins_stream_tasks where status != "ready";
|
|
|
|
|
sql select * from information_schema.ins_stream_tasks where status != "ready";
|
|
|
|
|
|
|
|
|
|
if $rows != 0 then
|
|
|
|
|
print rows=$rows
|
|
|
|
|
goto loopCheck0
|
|
|
|
|
endi
|
|
|
|
|
|
|
|
|
|
print ====check task status end
|