# Catching the end of flowgraph execution

**URL:** <https://www.ruby-forum.com/t/catching-the-end-of-flowgraph-execution/241790>\
**Category:** GNU Radio\
**Created:** [April 30, 2015, 4:51pm UTC](https://www.ruby-forum.com/t/catching-the-end-of-flowgraph-execution/241790 "2015-04-30T16:51:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [April 30, 2015, 4:51pm UTC](https://www.ruby-forum.com/t/catching-the-end-of-flowgraph-execution/241790/1 "2015-04-30T16:51:50Z")

</div>

Hello again guys,

this is some kind of next stage of my previous queston. Namely, I have  
top  
block with two flowgraphs, rx\_path and tx\_path. tx\_path produces known  
number of samples during which time rx\_path receivees. As soon as  
tx\_path  
is finishes I should also stop rx\_path, or at least to close certain  
file  
sinks. Is there any way to catch that flowgraph (in this case  
subflograph)  
is finished with execution and have no more samples to produce?

Best and thanx again,
