rcbyron commented on PR #2397:
URL: https://github.com/apache/tinkerpop/pull/2397#issuecomment-2270026800

   I'm still having issues with graceful shutdown even with this code.
   
   I use the default scripts/empty-sample.groovy which has:
   ```groovy
   globals << [hook : [
           onStartUp: { LifeCycleHook.Context ctx ->
               ctx.logger.info("Executed once at startup of Gremlin Server.")
           },
           onShutDown: { LifeCycleHook.Context ctx ->
               ctx.logger.info("Executed once at shutdown of Gremlin Server.")
               graph.close()  // <-- I ADDED THIS
           }
   ] as LifeCycleHook]
   ```
   And `Executed once at shutdown...` is never called I tried 
stopping/starting/restarting from Docker Desktop.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to