Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How do I cleanly shutdown a consumer
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Christoph  
View profile  
 More options Jul 10 2012, 11:44 am
From: Christoph <langal...@gmail.com>
Date: Tue, 10 Jul 2012 08:44:12 -0700 (PDT)
Local: Tues, Jul 10 2012 11:44 am
Subject: How do I cleanly shutdown a consumer

Hi everyone,

If looked for an answer in the documentation, but I didn't find anything.
If this is already documented, please give me a hint.

How would you cleanly shutdown a consumer?
This means, it will not accept any new messages but still continue to
process the ones it already received. After the last message was
processed successful or fails, the worker could stop (this is not the
problem).
My problem is, I don't know how to tell MT to stop with receiving messages.

Any hints on this?

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dru Sellers  
View profile   Translate to Translated (View Original)
 More options Jul 10 2012, 12:37 pm
From: Dru Sellers <d...@drusellers.com>
Date: Tue, 10 Jul 2012 11:37:40 -0500
Local: Tues, Jul 10 2012 12:37 pm
Subject: Re: [masstransit-discuss] How do I cleanly shutdown a consumer

do you want to shut down one consumer or the bus?

-d


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Patterson  
View profile  
 More options Jul 10 2012, 1:30 pm
From: Chris Patterson <ch...@phatboyg.com>
Date: Tue, 10 Jul 2012 12:30:29 -0500
Local: Tues, Jul 10 2012 1:30 pm
Subject: Re: [masstransit-discuss] How do I cleanly shutdown a consumer

You need to shut down the bus, by calling Dispose() on the IServiceBus
interface. This will stop the threads, allowing any executing consumers to
complete, and cleanly exit.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dru Sellers  
View profile  
 More options Jul 10 2012, 1:41 pm
From: Dru Sellers <d...@drusellers.com>
Date: Tue, 10 Jul 2012 12:41:17 -0500
Local: Tues, Jul 10 2012 1:41 pm
Subject: Re: [masstransit-discuss] How do I cleanly shutdown a consumer

Will Dispose block until they are all done?

-d

On Jul 10, 2012, at 12:30, Chris Patterson <ch...@phatboyg.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Smith  
View profile  
 More options Jul 10 2012, 1:44 pm
From: Travis Smith <tra...@legomaster.net>
Date: Tue, 10 Jul 2012 13:44:24 -0400
Local: Tues, Jul 10 2012 1:44 pm
Subject: Re: [masstransit-discuss] How do I cleanly shutdown a consumer
It does. Though I don't recall if there's a timeout on how long we
will block before releasing.

-Travis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christoph  
View profile  
 More options Jul 11 2012, 3:57 am
From: Christoph <langal...@gmail.com>
Date: Wed, 11 Jul 2012 00:57:05 -0700 (PDT)
Local: Wed, Jul 11 2012 3:57 am
Subject: Re: [masstransit-discuss] How do I cleanly shutdown a consumer

What will happen if some error occurs and the bus is already shut down? Is
the regarding Fault<T> still sent?

I have to stop the processing of new messages during the shutdown phase of
a windows service. The service should wait as long as there are messages in
processing, but stop to process new ones.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Patterson  
View profile   Translate to Translated (View Original)
 More options Jul 11 2012, 7:59 am
From: Chris Patterson <ch...@phatboyg.com>
Date: Wed, 11 Jul 2012 06:59:05 -0500
Local: Wed, Jul 11 2012 7:59 am
Subject: Re: [masstransit-discuss] How do I cleanly shutdown a consumer

If you are wanting to "drain" the queues before exiting, that's not
something that is available. In a distributed system, this could mean the
service never exists as events and commands continue to be added to the
queues by other services.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christoph  
View profile  
 More options Jul 11 2012, 8:15 am
From: Christoph <langal...@gmail.com>
Date: Wed, 11 Jul 2012 05:15:34 -0700 (PDT)
Local: Wed, Jul 11 2012 8:15 am
Subject: Re: [masstransit-discuss] How do I cleanly shutdown a consumer

> If you are wanting to "drain" the queues before exiting, that's not
> something that is available. In a distributed system, this could mean the
> service never exists as events and commands continue to be added to the
> queues by other services.

That is true and not the required behavior. I mean the consumer should
finish the processing of the messages it already _has_ received. It should
not receive _new_ ones.
I now know that for this I have to dispose the bus.

But in the case that some of the consumers receive an error during
processing and the bus is disposed, I assume the Fault<T> message couldn't
be sent anymore. Is this correct?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Smith  
View profile  
 More options Jul 11 2012, 8:42 am
From: Travis Smith <tra...@legomaster.net>
Date: Wed, 11 Jul 2012 08:42:20 -0400
Local: Wed, Jul 11 2012 8:42 am
Subject: Re: [masstransit-discuss] How do I cleanly shutdown a consumer

> But in the case that some of the consumers receive an error during
> processing and the bus is disposed, I assume the Fault<T> message couldn't
> be sent anymore. Is this correct?

The bus is not completely disposed until the consumer finishes
processing. This should still succeed as desired.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Patterson  
View profile  
 More options Jul 11 2012, 11:45 am
From: Chris Patterson <ch...@phatboyg.com>
Date: Wed, 11 Jul 2012 10:45:29 -0500
Local: Wed, Jul 11 2012 11:45 am
Subject: Re: [masstransit-discuss] How do I cleanly shutdown a consumer

Faults will be sent just fine, the consumers already handling messages will
complete and the bus is not actually disposed until all of the consumers
are completed.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christoph  
View profile  
 More options Jul 11 2012, 12:20 pm
From: Christoph <langal...@gmail.com>
Date: Wed, 11 Jul 2012 09:20:56 -0700 (PDT)
Local: Wed, Jul 11 2012 12:20 pm
Subject: Re: [masstransit-discuss] How do I cleanly shutdown a consumer

Great. That is exactly what I need. Thanks a lot!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »