Add action execution timeout for corner cases
This commit is contained in:
@@ -71,7 +71,7 @@ class PythonController:
|
|||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = requests.post(self.http_server + "/execute", headers=headers, data=payload)
|
response = requests.post(self.http_server + "/execute", headers=headers, data=payload, timeout=90)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
logger.info("Command executed successfully: %s", response.text)
|
logger.info("Command executed successfully: %s", response.text)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user