Skip to content

Conversation

jeffmaury
Copy link
Collaborator

Fixes #3494

What does this PR do?

Update the container monitoring to prevent extra log messages

Screenshot / video of UI

N/A

What issues does this PR fix or reference?

#3494

How to test this PR?

Run test

@ScrewTSW
Copy link
Member

ScrewTSW commented Sep 9, 2025

@jeffmaury is this the new intended behavior?:

main ↪️ event is {status: remove, id: 653eb3e0770542a9cdcfdb44e705847906661a9ed8130ee0b5f20904dc0fae0d, from: sha256:dedbf8ecd4e9218ac15133002465cfdc53a1c722ec8dc3f0d0355f8292f985f8, Type: container, Action: remove}
STDERR: Error: Something went wrong while trying to get container status got undefined Inference Server.
    at InferenceManager.updateServerStatus (/home/tdancs/Workspace/podman-desktop-extension-ai-lab/tests/playwright/tests/playwright/output/ai-lab-tests-pd/plugins/quayiotdancsailabindev/dist/extension.cjs:44141:13)
    at Object.callback (/home/tdancs/Workspace/podman-desktop-extension-ai-lab/tests/playwright/tests/playwright/output/ai-lab-tests-pd/plugins/quayiotdancsailabindev/dist/extension.cjs:44174:16)
    at /home/tdancs/Workspace/podman-desktop-extension-ai-lab/tests/playwright/tests/playwright/output/ai-lab-tests-pd/plugins/quayiotdancsailabindev/dist/extension.cjs:43612:76
    at Array.forEach (<anonymous>)
    at /home/tdancs/Workspace/podman-desktop-extension-ai-lab/tests/playwright/tests/playwright/output/ai-lab-tests-pd/plugins/quayiotdancsailabindev/dist/extension.cjs:43612:41
    at /home/tdancs/Workspace/podman-desktop/dist/linux-unpacked/resources/app.asar/packages/main/dist/index.cjs:6:14196
    at CallbackList.invoke (/home/tdancs/Workspace/podman-desktop/dist/linux-unpacked/resources/app.asar/packages/main/dist/index.cjs:6:14294)
    at Emitter.fire (/home/tdancs/Workspace/podman-desktop/dist/linux-unpacked/resources/app.asar/packages/main/dist/index.cjs:8:310)
    at EventEmitter.<anonymous> (/home/tdancs/Workspace/podman-desktop/dist/linux-unpacked/resources/app.asar/packages/main/dist/index.cjs:391:4567)
    at EventEmitter.emit (node:events:518:28)

main ↪️ event is {status: die, id: 54614f56e49f3f82ab8dd286f1ba44e611e9a32b6c1d162d3e19943ec6022a31, from: quay.io/ramalama/ramalama-whisper-server@sha256:a6…51973ed0d0a07abe63a6013abd04a442343a76f10bb686070, Type: container, Action: die}
main ↪️ [ai-lab] event id: 54614f56e49f3f82ab8dd286f1ba44e611e9a32b6c1d162d3e19943ec6022a31  containerId:  undefined
main ↪️ [ai-lab] event id: 54614f56e49f3f82ab8dd286f1ba44e611e9a32b6c1d162d3e19943ec6022a31  containerId:  undefined
main ↪️ Error: Something went wrong while trying to get container status got undefined Inference Server.
    at InferenceManager.updateServerStatus (/home/tdancs/Workspace/podman-desktop-extension-ai-lab/tests/playwright/tests/playwright/output/ai-lab-tests-pd/plugins/quayiotdancsailabindev/dist/extension.cjs:44141:13)
    at Object.callback (/home/tdancs/Workspace/podman-desktop-extension-ai-lab/tests/playwright/tests/playwright/output/ai-lab-tests-pd/plugins/quayiotdancsailabindev/dist/extension.cjs:44174:16)
    at /home/tdancs/Workspace/podman-desktop-extension-ai-lab/tests/playwright/tests/playwright/output/ai-lab-tests-pd/plugins/quayiotdancsailabindev/dist/extension.cjs:43612:76
    at Array.forEach (<anonymous>)
    at /home/tdancs/Workspace/podman-desktop-extension-ai-lab/tests/playwright/tests/playwright/output/ai-lab-tests-pd/plugins/quayiotdancsailabindev/dist/extension.cjs:43612:41
    at /home/tdancs/Workspace/podman-desktop/dist/linux-unpacked/resources/app.asar/packages/main/dist/index.cjs:6:14196
    at CallbackList.invoke (/home/tdancs/Workspace/podman-desktop/dist/linux-unpacked/resources/app.asar/packages/main/dist/index.cjs:6:14294)
    at Emitter.fire (/home/tdancs/Workspace/podman-desktop/dist/linux-unpacked/resources/app.asar/packages/main/dist/index.cjs:8:310)
    at EventEmitter.<anonymous> (/home/tdancs/Workspace/podman-desktop/dist/linux-unpacked/resources/app.asar/packages/main/dist/index.cjs:391:4567)
    at EventEmitter.emit (node:events:518:28)
main ↪️ event is {status: cleanup, id: 54614f56e49f3f82ab8dd286f1ba44e611e9a32b6c1d162d3e19943ec6022a31, from: quay.io/ramalama/ramalama-whisper-server@sha256:a6…51973ed0d0a07abe63a6013abd04a442343a76f10bb686070, Type: container, Action: cleanup}
main ↪️ event is {status: remove, id: 54614f56e49f3f82ab8dd286f1ba44e611e9a32b6c1d162d3e19943ec6022a31, from: quay.io/ramalama/ramalama-whisper-server@sha256:a6…51973ed0d0a07abe63a6013abd04a442343a76f10bb686070, Type: container, Action: remove}

doesn't seem to solve the underlaying issue.
Why are the cleanup, remove and die events called after one another?

Copy link
Contributor

@gastoner gastoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as Tibor when removing Inference server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deletion of AI App or Service causes uncaught exceptions
3 participants