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
Issue #2375 mentions, that after_startup and after_shutdown hooks have been removed. However, it is a feature, which I need.
Right now, I'm developing a service for receiving web hooks. After application start, I need to inform remote service, that my server started accepting requests.
Basic Example
app=Litestar(
[index],
after_startup=[lambda: print("Application started up!")]
)
Drawbacks and Impact
No response
Unresolved questions
My current workaround is running desired function after asyncio.sleep together with ASGI server in asyncio.gather. Is there a better alternative?
Summary
Issue #2375 mentions, that after_startup and after_shutdown hooks have been removed. However, it is a feature, which I need.
Right now, I'm developing a service for receiving web hooks. After application start, I need to inform remote service, that my server started accepting requests.
Basic Example
Drawbacks and Impact
No response
Unresolved questions
My current workaround is running desired function after
asyncio.sleep
together with ASGI server inasyncio.gather
. Is there a better alternative?Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: