Skip to content

Commit

Permalink
Samll cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Apr 4, 2021
1 parent f246661 commit 735885f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/delayed/launcher/forking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run_loop
end

def on_exit
logger.info "#{get_name(process_identifier)} #{' (parent)' if worker_count > 1}exited gracefully - pid #{$$}"
logger.info "#{get_name(process_identifier)}#{' (parent)' if worker_count > 1} exited gracefully - pid #{$$}"
end
end
end
Expand Down
8 changes: 4 additions & 4 deletions spec/delayed/launcher/shared_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
it { verify_worker_processes }
end

context 'correctly handle :pools arg' do
context ':pools arg' do
let(:options) { {:pools => [[[], 1], [['test_queue'], 4], [%w[mailers misc], 2]]} }
let(:exp) do
[
Expand All @@ -154,7 +154,7 @@
it { verify_worker_processes }
end

context 'correctly handle :queues and :worker_count args' do
context ':queues and :worker_count args' do
let(:options) { {:queues => %w[mailers misc], :worker_count => 4} }
let(:exp) do
[
Expand All @@ -167,7 +167,7 @@
it { verify_worker_processes }
end

context 'correctly handle :pid_dir and :log_dir args' do
context ':pid_dir and :log_dir args' do
let(:options) { {:pid_dir => './foo/bar', :log_dir => './baz/qux', :worker_count => 2} }
let(:exp) do
[
Expand All @@ -178,7 +178,7 @@
it { verify_worker_processes }
end

context 'correctly handle :identifier and other args' do
context ':identifier and other args' do
let(:options) { {:monitor => true, :prefix => 'my_prefix', :identifier => 'my_identifier', :worker_count => 2, :args => {:foo => 'bar', :baz => 'qux'}} }
let(:exp) do
[['delayed_job.my_identifier', {:pid_dir => './tmp/pids', :log_dir => './log'}]]
Expand Down

0 comments on commit 735885f

Please sign in to comment.