Replies: 3 comments 1 reply
-
|
@2-5 I'd say both As for the On a side node: if you want to run async code in |
Beta Was this translation helpful? Give feedback.
-
I'm curious how you think it might change. Maybe you want to remove
Indeed, that would make more sense for the example I posted above. In the real app I run multiple tasks for the whole duration of the process, so I need |
Beta Was this translation helpful? Give feedback.
-
|
@2-5 jfyi RSGI spec is now mentioning both |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
__rsgi_init__to be able to integrate in the event loop a separate piece ofasynciocode needed by the app. This was previously requested by other users (how to integrate withasyncio.create_task, ...):But
__rsgi__and__rsgi_init__are not mentioned in the RSGI spec, so I guess they are an undocumented feature used byemmett, but possibly not supported by other future RSGI servers.So what is their status?
I would also like to request the addition of something like
__rsgi_close__which is called on worker shutdown for graceful exit. You suggested in another discussion subclassingGranianand adding the custom shutdown call afterservereturns.Beta Was this translation helpful? Give feedback.
All reactions