FNNDSC / pman

A process management system written in python
MIT License
23 stars 33 forks source link

watch.py watches all the pods in the namespace #64

Closed ravisantoshgudimetla closed 6 years ago

ravisantoshgudimetla commented 6 years ago

As of now, watch.py watches all the pods in the namespace. We need to limit it to the job that was created. If not addressed, this will cause problems when we have multiple pods per job.

@umohnani8 - Can you address this? Basically you can use this line https://github.com/FNNDSC/pman/pull/63/files#diff-24f9c3766ff284d17b1307c1000e8ff3R320

instead of https://github.com/FNNDSC/pman/blob/master/openshift/pman-swift-publisher/watch.py#L26 for the pod created as part of job. Also, you need to iterate over the list of pods I think.

cc @danmcp