mirror of
https://github.com/newnius/YAO-agent.git
synced 2025-06-07 22:01:55 +00:00
update
This commit is contained in:
parent
4e00236b03
commit
39a638364a
6
agent.py
6
agent.py
@ -59,10 +59,14 @@ def generate_token(stringLength=8):
|
|||||||
|
|
||||||
def monitor_task(container_id):
|
def monitor_task(container_id):
|
||||||
print(container_id)
|
print(container_id)
|
||||||
|
container_id = ''
|
||||||
|
try:
|
||||||
container = client.containers.get(container_id)
|
container = client.containers.get(container_id)
|
||||||
|
except Exception as e:
|
||||||
|
print("[WARN]", str(e))
|
||||||
|
return
|
||||||
|
|
||||||
pid = 0
|
pid = 0
|
||||||
|
|
||||||
maxCPU = 0
|
maxCPU = 0
|
||||||
maxMem = 0
|
maxMem = 0
|
||||||
last_bw_rx = 0
|
last_bw_rx = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user