Replies: 1 comment 1 reply
-
I think #35 is a good starting point. Beware that Granian relies on multiprocessing even when you specify a single worker, so whatever you specify in the loader needs to be pickable, and that's also the reason why the target is by default a string in Granian. It would be nice to know the rationale behind your decision and your use-case for this, as in general relying on the CLI is easier and more portable. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, currently I want to use writing Python code instead of starting the service from the command line, but I found that the target parameter of the Granian class must be of the dotted string path. Can you help me check any clever way to directly pass in an application object ?
My environmental information:
OS : Macos
Python : python 3.9
granian : granian-0.7.6
Here are the effects I may want?
Beta Was this translation helpful? Give feedback.
All reactions