Skip to content
GitLab
Menu
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
16611d19
Commit
16611d19
authored
Oct 07, 2020
by
Mikhail Karnevskiy
Browse files
Add function for likely_done case
parent
75bb02c6
Pipeline
#331
failed with stage
in 1 minute and 47 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/AsapoWorker/streamer.py
View file @
16611d19
...
...
@@ -168,6 +168,7 @@ class Streamer:
return
if
(
has_data
or
new_substream
is
not
None
)
and
self
.
end_of_stream_callback
:
self
.
worker
.
handle_likely_done
()
# call the callback only once
self
.
end_of_stream_callback
(
new_substream
)
self
.
end_of_stream_callback
=
None
...
...
src/AsapoWorker/worker.py
View file @
16611d19
...
...
@@ -29,6 +29,12 @@ class Worker:
def
handle_receiver_critical_error
(
self
):
self
.
handle_receiver_error
()
def
handle_likely_done
(
self
):
"""
Call when substream is likely done and new substream is created
"""
pass
def
pre_scan
(
self
,
data
,
metadata
):
"""
If metadata stream is given this function is called at the beginning of
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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