Faststream application does not close it in case of error on startup event! #1910
Unanswered
fraFerrari99
asked this question in
Q&A
Replies: 1 comment 11 replies
-
Can you show me the code, please? We following snippet works as expected - raises the error to console at startup and downs from faststream import FastStream
from faststream.rabbit import RabbitBroker
broker = RabbitBroker()
app = FastStream(broker)
@app.on_startup
async def _():
raise ValueError |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm new with Faststream but I'm facing a particular error, that is related to the fact that when, inside the on_startup event, the application faces some errors, it calls the on_shutdown event but does not really close, it remains open! I can add the sys.exit(-1) line of code in the on_shutdown method, but I wanted to ask you why it does not close it at the end of the on_shutdown?
Beta Was this translation helpful? Give feedback.
All reactions