You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've built a custom source stage that implements the stop() method. Our stop() method sets _stop_requested flag to True on Ctrl+C which signals the generator method to stop yielding batches. However, we're seeing that the last yielded batch is not being received by the next stage.
Minimum reproducible example
Save the following code to pipeline.py in Morpheus root.
In Morpheus root: export MORPHEUS_ROOT=$(pwd)
Run pipeline: python pipeline.py
Press Ctrl+C after second batch is yielded.
Observe that PassThruStage does not receive the last yielded batch.
Version
23.11
Which installation method(s) does this occur on?
Conda
Describe the bug.
We've built a custom source stage that implements the
stop()
method. Ourstop()
method sets_stop_requested
flag toTrue
onCtrl+C
which signals the generator method to stop yielding batches. However, we're seeing that the last yielded batch is not being received by the next stage.Minimum reproducible example
pipeline.py
in Morpheus root.export MORPHEUS_ROOT=$(pwd)
python pipeline.py
Ctrl+C
after second batch is yielded.PassThruStage
does not receive the last yielded batch.Relevant log output
Note: The second
Received Ctrl+C
is due to a known issue where the source stage'sstop()
method is being called twice (#1477).Full env printout
No response
Other/Misc.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: