Skip to content

Add signal for graceful shutdown of VMs#558

Merged
dmah42 merged 3 commits into
aurae-runtime:mainfrom
mccormickt:graceful-vm
Jun 6, 2025
Merged

Add signal for graceful shutdown of VMs#558
dmah42 merged 3 commits into
aurae-runtime:mainfrom
mccormickt:graceful-vm

Conversation

@mccormickt
Copy link
Copy Markdown
Contributor

Figured we should have parity here between Cells and VMs.

// wait for all subscribers to drop
self.shutdown_broadcaster.closed().await;

if let Err(e) = self.cell_service.stop_all().await {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This seemed out of order. We should try and stop before freeing, I'd imagine?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

good catch.

Comment thread auraed/src/graceful_shutdown.rs Outdated
@mccormickt mccormickt force-pushed the graceful-vm branch 2 times, most recently from 5e81061 to 590b178 Compare June 6, 2025 00:16
@dmah42 dmah42 merged commit dc4c0da into aurae-runtime:main Jun 6, 2025
4 checks passed
@mccormickt mccormickt deleted the graceful-vm branch October 14, 2025 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants