Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supervisord considers an exited process as still running #372

Open
fhalde opened this issue Jul 31, 2023 · 0 comments
Open

Supervisord considers an exited process as still running #372

fhalde opened this issue Jul 31, 2023 · 0 comments

Comments

@fhalde
Copy link

fhalde commented Jul 31, 2023

I have the following supervisord.conf

[program:X]
command=ls
startsecs=0
autorestart=false

I then try to list the program using the http server /program/list API and it says the program is still Running

[{"name":"A","group":"A","description":"pid 2977, uptime 0:03:25","start":1690812571,"stop":0,"now":1690812776,"state":20,"statename":"Running","spawnerr":"","exitstatus":0,"logfile":"/tmp/ls","stdout_logfile":"/tmp/ls","stderr_logfile":"","pid":2977}]

Any idea why isn't it in an exited state?
On another note, if the program fails, the exitstatus is always shown as 0 from the above API

Is this a bug or known state transition?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant