Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FS-SC
AsapoWorker
Commits
28d0ca4e
Commit
28d0ca4e
authored
Jul 30, 2021
by
Mikhail Karnevskiy
Browse files
Add delay in case if StreamFinish flag is obtained but not messages are acknowledged.
parent
c1863fff
Pipeline
#8797
passed with stage
in 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/AsapoWorker/streamer.py
View file @
28d0ca4e
...
@@ -292,7 +292,7 @@ class Streamer:
...
@@ -292,7 +292,7 @@ class Streamer:
log
.
info
(
"Start stream processing."
)
log
.
info
(
"Start stream processing."
)
while
not
self
.
stopped
.
is_set
():
while
not
self
.
stopped
.
is_set
():
success
=
self
.
_process_stream
()
success
=
self
.
_process_stream
()
if
self
.
likely_done
and
not
success
:
if
(
self
.
likely_done
or
self
.
stream_finished
)
and
not
success
:
self
.
stopped
.
wait
(
self
.
delay_on_error
)
self
.
stopped
.
wait
(
self
.
delay_on_error
)
self
.
_increase_delay_on_error
()
self
.
_increase_delay_on_error
()
else
:
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment