Replies: 1 comment 2 replies
-
Have you seen here? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm almost done adjust my GraphQL deployment to run on both Apollo and Yoga and evaluate both. One thing I still haven figured out is draining the HTTP server.
In Apollo I'm using
ApolloServerPluginDrainHttpServer
alongstopOnTerminationSignals
which registers for signals. The plugin is also wrapped with another delay function that waits couple seconds before actually starting the drain.Is this possible with Yoga?
I see that there's
onDispose
but I don't think that it's reacting toSIGTERM
and I'm not sure if it has anything to do with closing connections and waiting for all requests to finish.E.g. the plugin never prints unless I run
yoga.dispose()
on SIGTERM manually.Beta Was this translation helpful? Give feedback.
All reactions