taskmaster's People
taskmaster's Issues
Removing stopped processes from the job list should not be done
I think it makes more sense to have a list of the stopped processes so the user can see their stopped status
Need a better error message when taskmasterd is not running
Currently it's:
Error: Could not create stream
Caused by:
Connection refused (os error 111)
but a more user friendly message would be nice.
Handle job failure more gracefully
As in: not straight-up exiting.
`startretries` to determine how many times should taskmaster try to start/restart the program before aborting
Sending a reload command makes taskmasterd panic
Implement --no-daemon option
Implement Taskmasterctl CLI inputs
Program should be able to expect any input without any unexpected behavior and implement the following flags:
- help
- version
- #8
- ???
Basic process launch
Sending a SIGHUP to taskmasterd shuts it down instead of acting as a reload command
Shutting down taskmasterd via signal panics
Same issue we had with shutdown
command, we should first shut down every job.
taskmasterd exits with an error when loading a config file with an error
Best way to deal with this would probably be to disregard the related job.
Handle SIGTERM and SIGINT
Job processes should be created (with stopped status) when not autostart
Basic config file
The program needs to parse/handle a config file which requires the following points:
-
cmd
field for the command with which the program will be launched -
numprocs
field for the number of processes to start/keep running -
umask
to define the program's umask -
workingdir
to define the working directory of the process -
autostart
field to define if the program should be started as soon as taskmasterd starts - #19
-
stopsignal
to define which signal should end the process - #20
- #21
- #22
-
stdout/stderr
to redirect the output/error output of the process to a file -
env
to define environment variables on the start of the process -
exitcodes
to define which exit code represents a graceful exit for the process
`starttimeout` to determine how long to wait after start before considering the program has started
Setting autorestart to true or false fails parsing
serde evaluates it as a boolean instead of a String.
A simple fix would be to replace false with "never" and true with "always", but that would differ from Supervisor.
Meanwhile setting autorestart to "true" works.
Take a config file as argument
`autorestart` field to define whether the process should restart always, never, or only on unexpected exit
Should we directly switch the process state to Stopped after sending a SigKill?
It would help avoiding sending multiple SigKill when stoptimeout
has been reached, but it would mean that the internal representation of the process is not 100% accurate.
Add Display trait to process state
Basic commands
Program needs to be able to start and execute the following commands:
- Start [progam]
- Stop [program]
- Restart [program]
- Reload
- Shutdown
- ?
`stoptimeout` to determine how long to wait after SIGCHLD before trying to kill the process with SIGKILL
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.