mirror of
https://github.com/modrinth/code.git
synced 2026-08-26 17:44:50 +00:00
fix: reinstall jobs not cleaning up if instance deleted (#6927)
This commit is contained in:
@@ -77,6 +77,11 @@ pub async fn remove(instance_id: &str) -> crate::Result<()> {
|
||||
let instance =
|
||||
instance_rows::get_instance_display_info(instance_id, &state.pool)
|
||||
.await?;
|
||||
crate::install::runner::cancel_jobs_for_instance_deletion(
|
||||
instance_id,
|
||||
&state,
|
||||
)
|
||||
.await?;
|
||||
crate::state::remove_instance(instance_id, &state).await?;
|
||||
|
||||
if let Some(instance) = instance {
|
||||
|
||||
Reference in New Issue
Block a user