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

add a status.sh to containers #8707

Open
belforte opened this issue Sep 20, 2024 · 1 comment · Fixed by #8737
Open

add a status.sh to containers #8707

belforte opened this issue Sep 20, 2024 · 1 comment · Fixed by #8737
Assignees

Comments

@belforte
Copy link
Member

e.g. on REST we have

crab3@crabserver-644cb69d77-n7sqw:/data$ ./manage.py status
crabserver is RUNNING, PID 67
crab3@crabserver-644cb69d77-n7sqw:/data$ 

which by the way is broken, since in that case at least proc 67 is gone and the correct one is 68

but in TW

crab3@crab-dev-tw01:/data/srv/TaskManager$ ./manage.py status
Error: Not implemented.
crab3@crab-dev-tw01:/data/srv/TaskManager$ 

We'd like status to not only indicate if process is running, but also whether it run code from the container /data/srv/current/lib... or from the local GithHub repository /data/repos/....

that can be done with this trick from @novicecpp

crab3@crab-dev-tw01:/data/srv/TaskManager$ cat /proc/18/environ |tr '\0' '\n'|grep PYTHONPATH
PYTHONPATH=/data/srv/current/lib/python/site-packages/:
crab3@crab-dev-tw01:/data/srv/TaskManager$ 

./status.sh could also print the version number ( tag name)

@belforte
Copy link
Member Author

#8737 will fix main requirement here, only thing to add is version number, just a convenience...

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

Successfully merging a pull request may close this issue.

3 participants