Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit d05f6e9

Browse files
authored
Fix Heron Shell PID Extractor (#3528)
* Fix Heron Shell PID Extractor * read pid file
1 parent 07b5d8c commit d05f6e9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

heron/shell/src/python/handlers/pidhandler.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@ class PidHandler(tornado.web.RequestHandler):
3535
def get(self, instance_id):
3636
''' get method '''
3737
self.content_type = 'application/json'
38-
self.write(json.dumps(utils.chain([
39-
['ps', 'auxwwww'],
40-
['grep', instance_id],
41-
['grep', 'java'],
42-
['awk', '\'{print $2}\'']])).strip())
38+
self.write(json.dumps(utils.chain([['cat', "%s.pid" % instance_id]])).strip())
4339
self.finish()

0 commit comments

Comments
 (0)