Skip to content

Commit

Permalink
Fix executor
Browse files Browse the repository at this point in the history
  • Loading branch information
takonomura committed Jan 29, 2018
1 parent 9a97ff2 commit 34839bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/autoload/kuroko2/command/executor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def initialize
elsif worker_id == (Command::Executor.num_workers - 1)
Command::Monitor.new(hostname: @hostname, worker_id: worker_id)
else
@worker = Worker.where(hostname: @hostname, worker_id: worker_id, queue: @queue).first_or_initialize!
@worker.update_column(:suspendable, true)
@worker = Worker.where(hostname: @hostname, worker_id: worker_id, queue: @queue).first_or_initialize
@worker.update!(suspendable: true)
Command::Shell.new(hostname: @hostname, worker_id: worker_id, worker: @worker, queue: @queue)
end
end
Expand Down

0 comments on commit 34839bc

Please sign in to comment.