mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Switch to threaded tasks, see also celluloid/celluloid#251
This commit is contained in:
parent
5db5c938ac
commit
beaec4422f
2 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,8 @@ module Sidekiq
|
|||
module Actor
|
||||
if $TESTING
|
||||
|
||||
TaskThread = 0
|
||||
|
||||
def sleep(amount=0)
|
||||
end
|
||||
|
||||
|
@ -51,6 +53,8 @@ module Sidekiq
|
|||
alias_method :new_link, :new
|
||||
def trap_exit(meth)
|
||||
end
|
||||
def task_class(konstant)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@ module Sidekiq
|
|||
include Util
|
||||
include Actor
|
||||
|
||||
task_class TaskThread
|
||||
|
||||
def self.default_middleware
|
||||
Middleware::Chain.new do |m|
|
||||
m.add Middleware::Server::Logging
|
||||
|
|
Loading…
Add table
Reference in a new issue