-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I am trying to use ActionPool with ActionMailer from Rails 2.3.2 (ruby 1.9.3). It seems that every call to .deliver somehow stops the thread. I don't even get a hint when surrounding it in a rescue block, there is just a stop and that's it.
pool = ActionPool::Pool.new
2.times do
pool.process do
@log.debug "#{Thread.current} sending"
::SystemMailer.testmail('john@doe.com').deliver
@log.debug "#{Thread.current} sent"
end
end
pool.shutdown
@log.debug "pools shutdown"Output:
#<Thread:0xadb4548> sending
#<Thread:0xadb5d30> sending
pools shutdown
This however works when doing Thread.new and joining them afterwards, without the use of ActionPool.
Metadata
Metadata
Assignees
Labels
No labels