Skip to content

Commit 613cfac

Browse files
authored
Silence Logging by default (#147)
* initial commit for silence_logging * update readme with new default * Update README.md
1 parent efbb307 commit 613cfac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ There are several settings that control how Solid Queue works that you can set a
162162
- `process_heartbeat_interval`: the heartbeat interval that all processes will follow—defaults to 60 seconds.
163163
- `process_alive_threshold`: how long to wait until a process is considered dead after its last heartbeat—defaults to 5 minutes.
164164
- `shutdown_timeout`: time the supervisor will wait since it sent the `TERM` signal to its supervised processes before sending a `QUIT` version to them requesting immediate termination—defaults to 5 seconds.
165-
- `silence_polling`: whether to silence Active Record logs emitted when polling for both workers and dispatchers—defaults to `false`.
165+
- `silence_polling`: whether to silence Active Record logs emitted when polling for both workers and dispatchers—defaults to `true`.
166166
- `supervisor_pidfile`: path to a pidfile that the supervisor will create when booting to prevent running more than one supervisor in the same host, or in case you want to use it for a health check. It's `nil` by default.
167167
- `preserve_finished_jobs`: whether to keep finished jobs in the `solid_queue_jobs` table—defaults to `true`.
168168
- `clear_finished_jobs_after`: period to keep finished jobs around, in case `preserve_finished_jobs` is true—defaults to 1 day. **Note:** Right now, there's no automatic cleanup of finished jobs. You'd need to do this by periodically invoking `SolidQueue::Job.clear_finished_in_batches`, but this will happen automatically in the near future.

lib/solid_queue.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module SolidQueue
3333

3434
mattr_accessor :shutdown_timeout, default: 5.seconds
3535

36-
mattr_accessor :silence_polling, default: false
36+
mattr_accessor :silence_polling, default: true
3737

3838
mattr_accessor :supervisor_pidfile
3939
mattr_accessor :supervisor, default: false

0 commit comments

Comments
 (0)