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

pypeman --reload not working with simple HTTP endpoint #109

Open
klausfmh opened this issue Jan 3, 2019 · 1 comment
Open

pypeman --reload not working with simple HTTP endpoint #109

klausfmh opened this issue Jan 3, 2019 · 1 comment
Labels

Comments

@klausfmh
Copy link
Collaborator

klausfmh commented Jan 3, 2019

Scenario:
1.) Create a pypeman graph with a simple HTTPEndpoint and one node.
2.) start pypeman with the --reload option
3.) let pypeman process one message
4.) change the project.py file

What can be observed:

Pypeman freezes after the message
End started tasks...

sample project to reproduce the problem

import logging

from pypeman import channels
from pypeman import endpoints
from pypeman import nodes

logger = logging.getLogger(__name__)

class TestNode(nodes.BaseNode):
    def process(self, msg):
        logger.info("got msg %r", msg)
        return msg

http = endpoints.HTTPEndpoint(
    sock='localhost:8081',
    reuse_port=True,
    )

chan_get = channels.HttpChannel(
    name="get_chan", endpoint=http,
    method='GET',
    url="/get/{myid}",
    )

chan_get.add(
    TestNode(),
    )

logger.info("created graph")
@klausfmh klausfmh added the bug label Jan 3, 2019
@klausfmh
Copy link
Collaborator Author

klausfmh commented Jan 3, 2019

after a reload attempt http requests are still handled by iohttp, but no more forwarded to the handling node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant