pam-python 0.1.21__tar.gz → 0.1.22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pam_python-0.1.21/pam_python.egg-info → pam_python-0.1.22}/PKG-INFO +1 -1
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/server.py +5 -4
- {pam_python-0.1.21 → pam_python-0.1.22/pam_python.egg-info}/PKG-INFO +1 -1
- {pam_python-0.1.21 → pam_python-0.1.22}/setup.py +1 -1
- {pam_python-0.1.21 → pam_python-0.1.22}/LICENSE.txt +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/README.md +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/__init__.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/api.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/cli.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/interface_task_manager.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/models/__init__.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/models/request_command.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/service.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/sqlite.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/task_manager.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/temp_file_utils.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/buildcmd/pamb +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/buildcmd/pamb-base.sh +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/docker/Dockerfile +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/init/dockerignore.tmpl +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/init/gitignore.tmpl +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/init/main.tmpl +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/init/pylintrc.tmpl +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/init/run_test.sh +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/service/functions.tmpl +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/service/service.test.tmpl +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/service/service.yaml +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/templates/service/service_class.tmpl +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/tester_task.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam/utils.py +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam_python.egg-info/SOURCES.txt +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam_python.egg-info/dependency_links.txt +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam_python.egg-info/entry_points.txt +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam_python.egg-info/requires.txt +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/pam_python.egg-info/top_level.txt +0 -0
- {pam_python-0.1.21 → pam_python-0.1.22}/setup.cfg +0 -0
|
@@ -12,7 +12,7 @@ from pam.models.request_command import RequestCommand
|
|
|
12
12
|
from pam.task_manager import TaskManager
|
|
13
13
|
from pam.temp_file_utils import TempfileUtils
|
|
14
14
|
from threading import Lock
|
|
15
|
-
|
|
15
|
+
from pam.utils import log
|
|
16
16
|
|
|
17
17
|
class Server:
|
|
18
18
|
"""
|
|
@@ -35,15 +35,16 @@ class Server:
|
|
|
35
35
|
|
|
36
36
|
@app.route('/service/<service_name>', methods=['POST'])
|
|
37
37
|
def run(service_name):
|
|
38
|
+
log(f"[run] service = {service_name}")
|
|
38
39
|
TempfileUtils.clean_temp()
|
|
39
|
-
|
|
40
|
+
log(f"[run] service = {service_name} after clean_temp")
|
|
40
41
|
req, error_request = RequestCommand.parse(request, service_name)
|
|
41
|
-
|
|
42
42
|
if error_request:
|
|
43
43
|
response = {'message': error_request}
|
|
44
44
|
return self.response_error(response, 400)
|
|
45
|
-
|
|
45
|
+
log(f"[run] service = {service_name} after parse")
|
|
46
46
|
response, code = self.handle_service_cmd(service_name, req)
|
|
47
|
+
log(f"[run] service = {service_name} after handle_service_cmd")
|
|
47
48
|
return self.response_error(response, code)
|
|
48
49
|
|
|
49
50
|
@app.route('/tasks', methods=['GET'])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|