Skip to content

Commit

Permalink
don't wait for saga completion in API endpoint
Browse files Browse the repository at this point in the history
this is still gross...
  • Loading branch information
hawkw committed Jul 3, 2024
1 parent d56175e commit 57e049f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions nexus/src/app/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1442,11 +1442,14 @@ impl super::Nexus {
serialized_authn: authn::saga::Serialized::for_opctx(opctx),
authz_instance,
};
self.sagas
.saga_execute::<sagas::instance_update::SagaInstanceUpdate>(
saga_params,
)
.await?;
let sagas = self.sagas.clone();
tokio::spawn(async move {
sagas
.saga_execute::<sagas::instance_update::SagaInstanceUpdate>(
saga_params,
)
.await
});
}
Ok(())
}
Expand Down

0 comments on commit 57e049f

Please sign in to comment.