feat(docker): add support for docker_absent event
Add "docker_absent" to the list of handled Docker events and map it to the "deleted" status in the event-to-status dictionary. This ensures proper handling of container absence events.
This commit is contained in:
@@ -55,6 +55,7 @@ def register_socketio_handlers(socketio):
|
||||
"docker_die",
|
||||
"docker_launch_failed",
|
||||
"docker_pull_progress",
|
||||
"docker_absent",
|
||||
):
|
||||
action_URL = f"workloads/containers/status_update/{system_container_id}"
|
||||
|
||||
@@ -76,6 +77,7 @@ def register_socketio_handlers(socketio):
|
||||
"docker_start": "running",
|
||||
"docker_running": "running",
|
||||
"docker_destroy": "deleted",
|
||||
"docker_absent": "deleted",
|
||||
"docker_die": "dead",
|
||||
"docker_launch_failed": "launch_failed",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user