Comments (5)
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.
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.
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.
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.
Sounds good
from forego.
Related Issues (20)
- Latest forego version immediately crashes for rails / node app HOT 3
- PORT env var dependent on the position in the Procfile HOT 2
- forego only extend the first shell variable on the right side of the equal sign in .env file
- Forego adds sleeping bash process for every application (read from .profile) HOT 2
- How to pause or stop a process ?
- Windows Ubuntu
- does not pass on signal to children
- npm script hangs on Windows with "Terminate batch job (Y/N)?" prompt
- Forego i386 binary? HOT 2
- Could you create a new version tag which is compatible with go modules? HOT 1
- Official Forego Docker image
- "forego start" exits immediately with doing nothing on macOS HOT 2
- equinox.io shutting down, publish builds elsewhere? HOT 3
- Download page missing HOT 2
- Prevent environment variables from being overriden?
- request a new release HOT 1
- Immediate exit when using reflex OSX HOT 3
- forego exit In osx HOT 1
- child process doesn't exit in osx HOT 1
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 forego.