Comments (2)
Also posted in gitter: https://matrix.to/#/!fqPdgWhOEtxbPlasve:gitter.im/$skWDihqObMBVhErRuXgkeqIploCBKlZWmiria1xpVAg?via=gitter.im&via=matrix.org
from finatra.
@niodice using the SIGTERM
(as opposed to calling close()
on the server) is going to bypass a lot of the graceful shutdown mechanics, IIRC.
The most straightforward thing to do, likely is to handle the interrupt using c.t.util.HandleSignal
and then call close()
.
See: https://twitter.github.io/finatra/user-guide/app/index.html#an-example-of-handling-signals (note a TwitterServer is an App, so you can follow the example similarly somewhere in your Server definition)
You likely also want to mess with the grace period in the server as well if necessary to allow for more time for closing resources if necessary. Hope that helps.
from finatra.
Related Issues (20)
- IncompatibleClassChangeError when updating from 20.3.0 -> 20.6.0 HOT 11
- Finatra feature test dependency issues with pants project HOT 6
- Generic Option deserialisation in generic case classes HOT 3
- Deserialisation of nested generic case classes fails HOT 3
- Upgrade Guice to 5.0.1+ HOT 5
- 21.3.0 and above not available on Maven Central HOT 2
- @Max and @Min do not work with Option[Int] HOT 8
- FileResolver should only search in localDocRoot when localDocRoot is specified HOT 3
- Reader[Buf] support request.param HOT 3
- bad link in readme.md 404 HOT 1
- Roadmap HOT 2
- Tests of examples/http-server failing HOT 3
- Where is closeOnExit HOT 3
- Updating finatra showing a lot of io.netty.handler.ssl.SslClosedEngineException: SSLEngine closed already at HOT 5
- Allow for deserializing Optional fields differently when absent vs null HOT 5
- expose JsonStreamParser
- Restricting/removing admin routes HOT 1
- MDC and Log4J2 do not get along very well HOT 1
- Wrong usage of QueryStringDecoder.decodeComponent in PathPattern
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finatra.