Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streams are not reclaimed properly on EOS #941

Open
bwsw opened this issue Feb 1, 2025 · 0 comments
Open

Streams are not reclaimed properly on EOS #941

bwsw opened this issue Feb 1, 2025 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@bwsw
Copy link
Contributor

bwsw commented Feb 1, 2025

Code:

module_hostname = os.environ.get('MODULE_HOSTNAME', 'localhost')
healthcheck_url = f'http://{module_hostname}:8888/status'
source_id = 'test-source'
parent_dir = os.path.dirname(os.path.dirname(__file__))
result_img_path = os.path.join(parent_dir, 'output', 'result_img.jpeg')

# Build the source
source = (
    SourceBuilder()
    .with_socket('dealer+connect:ipc:///tmp/zmq-sockets/input-video.ipc')
    .with_module_health_check_url(healthcheck_url)
    .build()
)

counter = 0
jpeg1 = JpegSource(source_id, file='/test_data/test_img.jpeg')
while True:
    _ = source(jpeg1, send_eos=True)
    counter += 1
    print(f'Counter: {counter}')
@bwsw bwsw added the bug Something isn't working label Feb 1, 2025
@bwsw bwsw added this to the 0.5.2 milestone Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant