mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
Try being more explicit about jobs
This commit is contained in:
parent
375d46a0b8
commit
4579650a1a
6 changed files with 6 additions and 6 deletions
2
app/jobs/cache/home_stats_job.rb
vendored
2
app/jobs/cache/home_stats_job.rb
vendored
|
|
@ -1,5 +1,5 @@
|
|||
class Cache::HomeStatsJob < Cache::ActivityJob
|
||||
queue_as :latency_1m
|
||||
queue_as :latency_5m
|
||||
|
||||
private
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
class MigrateUserFromHackatimeJob < ApplicationJob
|
||||
queue_as :latency_1m
|
||||
queue_as :latency_5m
|
||||
|
||||
include GoodJob::ActiveJobExtensions::Concurrency
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
class ScanGithubReposJob < ApplicationJob
|
||||
queue_as :latency_1m
|
||||
queue_as :latency_5m
|
||||
|
||||
include GoodJob::ActiveJobExtensions::Concurrency
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
class SlackUsernameUpdateJob < ApplicationJob
|
||||
queue_as :latency_1m
|
||||
queue_as :latency_5m
|
||||
|
||||
include GoodJob::ActiveJobExtensions::Concurrency
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ Rails.application.configure do
|
|||
config.action_mailer.raise_delivery_errors = true
|
||||
config.action_mailer.perform_deliveries = true
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.deliver_later_queue_name = :real_time
|
||||
config.action_mailer.deliver_later_queue_name = :latency_10s
|
||||
config.action_mailer.smtp_settings = {
|
||||
# provide fallbacks during build time
|
||||
user_name: ENV.fetch("SMTP_USER_NAME", "SMTP_USER_NAME"),
|
||||
|
|
|
|||
|
|
@ -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; latency_5m:1 literally_whenever:1 *:1"
|
||||
config.good_job.queues = "latency_10s:8; latency_5m,latency_10s:6 literally_whenever,*,latency_5m,latency_10s:2"
|
||||
|
||||
# https://github.com/bensheldon/good_job#pgbouncer-compatibility
|
||||
GoodJob.active_record_parent_class = "ApplicationDirectRecord"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue