Skip to content

Commit

Permalink
Merge pull request #96 from sj26/name-thread-pools
Browse files Browse the repository at this point in the history
Name the thread pools
  • Loading branch information
bensheldon authored Aug 25, 2020
2 parents ccff9a1 + e4fc6f0 commit 5a8460c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/good_job/notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module GoodJob # :nodoc:
class Notifier
CHANNEL = 'good_job'.freeze
POOL_OPTIONS = {
name: name,
min_threads: 0,
max_threads: 1,
auto_terminate: true,
Expand Down
1 change: 1 addition & 0 deletions lib/good_job/scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Scheduler

# Defaults for instance of Concurrent::ThreadPoolExecutor
DEFAULT_POOL_OPTIONS = {
name: name,
min_threads: 0,
max_threads: Concurrent.processor_count,
auto_terminate: true,
Expand Down

0 comments on commit 5a8460c

Please sign in to comment.