1
0
mirror of https://github.com/newnius/YAO-agent.git synced 2025-06-06 05:21:55 +00:00

update, bugfix

This commit is contained in:
Newnius 2020-12-10 18:46:42 +08:00
parent a8fd76ac05
commit 39486de323

View File

@ -12,7 +12,7 @@ NUMS = os.getenv('NUMS', 1)
ClientHost = os.getenv('ClientHost', "localhost") ClientHost = os.getenv('ClientHost', "localhost")
ReportAddress = os.getenv('ReportAddress', "http://yao-scheduler:8080/?action=agent_report") ReportAddress = os.getenv('ReportAddress', "http://yao-scheduler:8080/?action=agent_report")
PORT = os.getenv('Port', 8000) PORT = os.getenv('Port', 8000)
HeartbeatInterval = os.getenv('HeartbeatInterval', 5) HeartbeatInterval = int(os.getenv('HeartbeatInterval', 5))
class MyHandler(BaseHTTPRequestHandler): class MyHandler(BaseHTTPRequestHandler):