Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nexus] Put a
SagaContext
in a once cell
This allows the ability to run sagas from background tasks. The `SagaContext` already has a copy of an `Arc<BackgroundTasks>` which means that individual background tasks must have been created/ initialized before the `SagaContext`. We get around this build time circular dependency by putting the `SagaContext` inside a static `OnceCell` where the background tasks can access it at runtime. Builds upon #5856
- Loading branch information