Add tracing
Browse files- handler.py +5 -7
handler.py
CHANGED
@@ -18,14 +18,12 @@ class EndpointHandler:
|
|
18 |
Return:
|
19 |
A :obj:`list` | `dict`: will be serialized and returned
|
20 |
"""
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
print('__file__', __file__)
|
25 |
-
print('ls')
|
26 |
os.system('ls')
|
27 |
-
|
28 |
-
os.system('
|
29 |
|
30 |
# get inputs
|
31 |
inputs = data.pop("inputs", data)
|
|
|
18 |
Return:
|
19 |
A :obj:`list` | `dict`: will be serialized and returned
|
20 |
"""
|
21 |
+
os.system('echo $PWD')
|
22 |
+
os.system('python --version')
|
23 |
+
os.system('python3 --version')
|
|
|
|
|
24 |
os.system('ls')
|
25 |
+
os.system('ps -ef')
|
26 |
+
os.system('uname -a')
|
27 |
|
28 |
# get inputs
|
29 |
inputs = data.pop("inputs", data)
|