Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5437f8b commit cb1f17cCopy full SHA for cb1f17c
1 file changed
lib/utils/api.py
@@ -173,6 +173,9 @@ def engine_stop(self):
173
else:
174
return None
175
176
+ def engine_process(self):
177
+ return self.process
178
+
179
def engine_kill(self):
180
if self.process:
181
return self.process.kill()
@@ -512,7 +515,7 @@ def scan_status(taskid):
512
515
logger.warning("[%s] Invalid task ID provided to scan_status()" % taskid)
513
516
return jsonize({"success": False, "message": "Invalid task ID"})
514
517
- if DataStore.tasks[taskid].engine_get_returncode() is None:
518
+ if DataStore.tasks[taskid].engine_process() is None:
519
status = "not running"
520
521
status = "terminated" if DataStore.tasks[taskid].engine_has_terminated() is True else "running"
0 commit comments