Is there a mechanism to hook into saga exceptions thrown by mass transit? For example if a message can't be correlated to an existing saga, mass transit throws a sagaexception and puts the message into the error queue. I was hoping that a Fault<T> would be thrown, but that doesn't appear to be the case.My use case is specifically for Automatonymous sagas.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/bf028b8e-6e1b-48d0-ad7a-6467cb4744a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'll double check, but I'm pretty sure exceptions from state machine event handlers end up in the error queue, and they should publish a Fault message as well.
On Thu, May 15, 2014 at 12:52 PM, Jose Viray <jrv...@gmail.com> wrote:
Is there a mechanism to hook into saga exceptions thrown by mass transit? For example if a message can't be correlated to an existing saga, mass transit throws a sagaexception and puts the message into the error queue. I was hoping that a Fault<T> would be thrown, but that doesn't appear to be the case.My use case is specifically for Automatonymous sagas.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
This will cause a fault to be published and the message to be moved to the _error queue if an existing saga instance is not present. It also makes it so that you can insert a deferred retry policy for the message into the pipeline.
I'm experiencing the same issue in version 3.0.17
Chris - does an automatonymous saga publishes fault events?
Thanks
On Friday, May 16, 2014 at 11:55:55 PM UTC+3, Jose Viray wrote:
If it helps, the scenario that I'm running is basically trying to start a saga with an already existing correlationid. Here is the exception that I'm trying to get Mass Transit to bubble up a fault for:
MassTransit.Exceptions.SagaException: WorkflowService.ContainerWorkflow.ContainerState Saga exception on receipt of PreProcessingMessages.ContainerFound: The message cannot be accepted by an existing sagaat MassTransit.Saga.InitiatingSagaPolicy`2.CanUseExistingInstance(IConsumeContext`1 context) in d:\BuildAgent-02\work\aa063b4295dfc097\src\MassTransit\Saga\InitiatingSagaPolicy.cs:line 54at MassTransit.NHibernateIntegration.Saga.NHibernateSagaRepository`1.<GetSaga>d__c`1.MoveNext() in d:\BuildAgent-02\work\aa063b4295dfc097\src\Persistence\MassTransit.NHibernateIntegration\Saga\NHibernateSagaRepository.cs:line 98at Automatonymous.AutomatonymousStateMachineSagaRepository`1.<GetSaga>d__a`1.MoveNext()at MassTransit.Saga.Pipeline.SagaMessageSinkBase`2.<Enumerate>d__0.MoveNext() in d:\BuildAgent-02\work\aa063b4295dfc097\src\MassTransit\Saga\Pipeline\SagaMessageSinkBase.cs:line 43at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()at MassTransit.Context.ServiceBusReceiveContext.<ReceiveFromEndpoint>b__0(IReceiveContext context) in d:\BuildAgent-02\work\aa063b4295dfc097\src\MassTransit\Context\ServiceBusReceiveContext.cs:line 102at MassTransit.Transports.Endpoint.<>c__DisplayClass9.<Receive>b__5(IReceiveContext acceptContext) in d:\BuildAgent-02\work\aa063b4295dfc097\src\MassTransit\Transports\Endpoint.cs:line 275
On Friday, May 16, 2014 8:04:33 AM UTC-6, Chris Patterson wrote:
I'll double check, but I'm pretty sure exceptions from state machine event handlers end up in the error queue, and they should publish a Fault message as well.
On Thu, May 15, 2014 at 12:52 PM, Jose Viray <jrv...@gmail.com> wrote:
Is there a mechanism to hook into saga exceptions thrown by mass transit? For example if a message can't be correlated to an existing saga, mass transit throws a sagaexception and puts the message into the error queue. I was hoping that a Fault<T> would be thrown, but that doesn't appear to be the case.My use case is specifically for Automatonymous sagas.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/bf028b8e-6e1b-48d0-ad7a-6467cb4744a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/67256b7a-19e9-4be6-b68e-87d41368b398%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/a7e94bd8-4bd6-42bf-9c84-05ca767b8961%40googlegroups.com.