Giter Site home page Giter Site logo

Comments (5)

ddollar avatar ddollar commented on July 24, 2024

I'd consider this but there are lots of edge cases. What happens if the app crashes on start? Do we retry only a certain number of times? In a certain time period? If the crashing is non-recoverable but temporary (lose network connection) does we eventually stop thrashing? Do we need some sort of exponential backoff?

My original intention with not including this behavior was both because it can get quite complicated and to discourage foreman's use in production as a process supervisor.

I feel less strongly about the production with forego (ruby always felt way too heavy for that sort of job) but I'm curious how we resolve the edge cases.

from forego.

tomwhoiscontrary avatar tomwhoiscontrary commented on July 24, 2024

Hang on, does forego -r already do this?

I only discovered that by reading the code, so i'm not sure what it does. If it does what i want, can i change this issue to be a request/offer for improved documentation?

from forego.

tomwhoiscontrary avatar tomwhoiscontrary commented on July 24, 2024

With regards to edge cases, those are all good questions, but i don't think a lack of answers to them is a good reason not to implement a basic version of this. Indeed, having terrible handling of edge cases is probably a good thing if you want to discourage production use.

My use case is that i have a microservicey application written in Java with Spring, comprising 19 separate processes so far. If i want to change one process and restart it, at the moment, i have to restart every microservice; this being Spring, it takes several minutes to start everything up, even on a beefy iMac. The ability to restart a single process would make development much more comfortable.

Automatic restarts is one way of getting this, because i can kill the process i want to restart. A way to request restart of a particular process would also do it, but that sounds a lot more complicated.

from forego.

tomwhoiscontrary avatar tomwhoiscontrary commented on July 24, 2024

Okay, so -r does do what i want, but it was broken until 9372bb8. There isn't a release with 9372bb8 in; the latest is v0.16.1, which was db3ef40, a couple of months before.

What do you say i PR in an expanded long description for the start command, then you cut a new release?

from forego.

ddollar avatar ddollar commented on July 24, 2024

Sounds good

from forego.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.