Open kylincaster opened 1 year ago
Very impressive! I will try to have a look asap.
What the status with this @justanhduc? I'm calling tsp
via a PHP file with shell_exec
. I have issues with my process and there is absolutely no way of debugging it.
Hey @sadikyalcin. I'm quite busy this semester, so I can't commit any time for this until the end of the year. What issue did you encounter? How about opening an issue? And why do you think this PR can solve your problem?
Hey @sadikyalcin. I'm quite busy this semester, so I can't commit any time for this until the end of the year. What issue did you encounter? How about opening an issue? And why do you think this PR can solve your problem?
I'm not even sure if I'm in the right repo but I'm using this https://manpages.ubuntu.com/manpages/xenial/man1/tsp.1.html
Issue is, I'm calling tsp
via exec
from a php
file, which happens to be run by apache
/ www-data
. I have no way of debugging or monitoring the queue when I ssh via another user or root since I cannot see the tasks created by the web server.
My understanding was this PR would allow us to define which user can run tsp - so I could just ssh and monitor the tasks when ever I wished.
For multi-user, each user has the same opportunity to invoke a new job, if the user's slot and the total slot are large enough.
usage:
./${tmpdir}/socket-ts.root
or which could be specific byTS_SOCKET
environment variable.(server_start.c)user.c
which could be modified by the enivorment variableTS_USER_PATH
. Moreover a log file is also controlled byuser.c
New features/Commands and the potential problem
--daemon
Run the server as daemon by Root only.--hold
and--restart
[jobid] hold-on and restart a task.--lock
and--unlock
Lock and unlock the task-spooler servers to avoid the potential conflict--stop
and--cont
[user], pause and continue all tasks, or lock/unlock all user by root-A
show all user information and all tasks-X
refresh the user configure on-the-fly-K
kill the task spooler server-r
remove a job, even it is runningThe main problem of my work is that the root server cannot control the task run by the other normal user. I found in my service I cannot stop/pause the task owner by the other normal user. Could you have a look on the
c_remove_job()
function in theclient.c