Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saga timeout #28

Open
paolofulgoni opened this issue Sep 5, 2019 · 1 comment
Open

Saga timeout #28

paolofulgoni opened this issue Sep 5, 2019 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@paolofulgoni
Copy link

paolofulgoni commented Sep 5, 2019

It would be nice if the saga could set a timeout in the message handlers.

For example, the saga could implement such an interface, similar to ISagaAction:

    public interface ISagaTimeoutAction
    {
        Task HandleTimeoutAsync(ISagaContext context);
        Task CompensateTimeoutAsync(ISagaContext context);
    }

(I'm supposing that a timeout doesn't necessarily complete the Saga.)

Timeout could be scheduled in message handler through a method of ISaga

    public interface ISaga
    {
        // ...
        void ScheduleTimeout(TimeSpan timeSpan, ISagaContext context);
    }

Source of inspiration: https://docs.particular.net/nservicebus/sagas/timeouts

@GooRiOn
Copy link
Member

GooRiOn commented Sep 25, 2019

We should consider adding this one! Thx!

@GooRiOn GooRiOn added enhancement New feature or request help wanted Extra attention is needed labels Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants