[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] PID of a running job



Thanks for the reply,

Well I'm not familiar with these hooks, maybe I'll take a look.

Though I finished my implementation using cgroups and looking at the folders.
It's not that bad, condor creates a sub-folder for each busy slot and all the running-jobs pids are stored there (while it's still running).

Thanks again,
Ricardo Oda

On Tue, May 12, 2015 at 6:41 AM, Brian Bockelman <bbockelm@xxxxxxxxxxx> wrote:
Hi Ricardo,

I've been trying to come up with a clever way to do this, but I've not been able to come up with something simple.

Here's something not-simple:
- Use the "update job info" hook (http://research.cs.wisc.edu/htcondor/manual/v8.3/4_4Hooks.html#SECTION00541100000000000000) to get information about the running job.
- From within the update hook script, invoke /usr/libexec/condor/condor_chirp to push a JobPid attribute from worker node to schedd.

Brian

On May 6, 2015, at 7:06 PM, Ricardo Oda <odaric@xxxxxxxxxx> wrote:

Hello,

Is there a good programmatically way to get the os process id (PID) of a running job on the host machine? I've not found a classad that shows it.

The way I'm working right now is using cgroups and monitoring the child groups (folders) of the my BASE_CGROUP, but maybe there's a simpler/easier way.

Thanks,

Ricardo Oda
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/


_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/