pytorch-lightning icon indicating copy to clipboard operation
pytorch-lightning copied to clipboard

Does the Lightning API support async handle_post?

Open Felonious-Spellfire opened this issue 2 years ago • 2 comments

📚 Documentation

Async is not supported and is not possible. It would be possible using a staticmethod, but at this time this is not supported.

cc @borda @rohitgr7 @Felonious-Spellfire

Felonious-Spellfire avatar Sep 16 '22 02:09 Felonious-Spellfire

@tchaton Please help me a bit with the content for this.

Felonious-Spellfire avatar Sep 16 '22 02:09 Felonious-Spellfire

.. note:: The Lightning App HTTP methods are synchronous as requests are routed from the App Rest API to the flow internally and asynchronous could lead to state collisions.

tchaton avatar Sep 16 '22 09:09 tchaton