Ah, you are right. I'll try another way. 

Sent from my iPhone

On Mar 16, 2013, at 2:42 AM, Richard Huang <notifications@github.com> wrote:

> In lib/newrelic-rake/instrument.rb:
> 
> >          perform_action_with_newrelic_trace(:name => self.name, :category => "OtherTransaction/Rake") do
> >            origin_execute(args)
> >          end
> > +        NewRelic::Agent.shutdown
> I'm afraid you can't shutdown newrelic agent here, as if the rake task depends on another rake task, agent will be shutdown when another rake task finished
> 
> —
> Reply to this email directly or view it on GitHub.