Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"configurations": [
{
"name": "main.py",
"type": "python",
"type": "debugpy",
"request": "launch",
"program": "agent/main.py",
"console": "integratedTerminal",
Expand All @@ -19,7 +19,7 @@
},
{
"name": "devcontainer main.py",
"type": "python",
"type": "debugpy",
"request": "launch",
"program": "agent/main.py",
"console": "integratedTerminal",
Expand All @@ -34,7 +34,7 @@
},
{
"name": "Python: Debug Tests",
"type": "python",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"purpose": [
Expand Down
2 changes: 1 addition & 1 deletion agent/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _start_net_client(docker_api=None):
name=f"{net_container_name}_{sly.rand_str(5)}",
command=command,
network=network,
cap_add="NET_ADMIN",
cap_add=["NET_ADMIN"],
volumes=volumes,
privileged=True,
restart_policy={"Name": "always", "MaximumRetryCount": 0},
Expand Down
3 changes: 2 additions & 1 deletion agent/worker/agent_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,8 @@ def nvidia_runtime_is_available():
)
return True
except Exception as e:
sly.logger.warning(f"Failed to run nvidia-smi:", exc_info=True)
sly.logger.warning(f"Failed to run nvidia-smi: {str(e)}")
sly.logger.debug("Failed to run nvidia-smi.Full traceback:", exc_info=True)
return False


Expand Down