mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Try improving Ahoy geocoding behavior
This commit is contained in:
@@ -9,4 +9,4 @@ Ahoy.api = false
|
||||
# see https://github.com/ankane/ahoy#geocoding
|
||||
Ahoy.geocode = true
|
||||
|
||||
Ahoy.job_queue = :ahoy
|
||||
Ahoy.job_queue = :literally_whenever
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# Override Ahoy::GeocodeV2Job priority to be low
|
||||
Ahoy::GeocodeV2Job.class_eval do
|
||||
self.priority = 1000
|
||||
end
|
||||
@@ -8,7 +8,7 @@ Rails.application.configure do
|
||||
config.good_job.execution_mode = :async
|
||||
|
||||
# https://github.com/bensheldon/good_job#configuring-your-queues
|
||||
config.good_job.queues = "real_time:2; latency_10s:8; latency_1m:2; *:1"
|
||||
config.good_job.queues = "real_time:2; latency_10s:8; latency_1m:2; latency_5m:1 literally_whenever:1 *:1"
|
||||
|
||||
# https://github.com/bensheldon/good_job#pgbouncer-compatibility
|
||||
GoodJob.active_record_parent_class = "ApplicationDirectRecord"
|
||||
|
||||
Reference in New Issue
Block a user