chore: minor cleanups

This commit is contained in:
Sojan
2023-04-26 03:31:05 +05:30
parent 7833311cf4
commit c9cf9e5169
3 changed files with 5 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ gem 'csv-safe'
##-- for active storage --## ##-- for active storage --##
gem 'aws-sdk-s3', require: false gem 'aws-sdk-s3', require: false
# original gem isn't maintained actively # original gem isn't maintained actively
# we wanted updated version of farady which is a dependecy for slack-ruby-client # we wanted updated version of faraday which is a dependency for slack-ruby-client
gem 'azure-storage-blob', git: 'https://github.com/chatwoot/azure-storage-ruby', branch: 'chatwoot', require: false gem 'azure-storage-blob', git: 'https://github.com/chatwoot/azure-storage-ruby', branch: 'chatwoot', require: false
gem 'google-cloud-storage', require: false gem 'google-cloud-storage', require: false
gem 'image_processing' gem 'image_processing'
@@ -94,7 +94,7 @@ gem 'slack-ruby-client', '~> 2.0.0'
# for dialogflow integrations # for dialogflow integrations
gem 'google-cloud-dialogflow' gem 'google-cloud-dialogflow'
# Translate integrations # Translate integrations
# 'google-cloud-translate' gem depends on faradau unde 2.0 version # 'google-cloud-translate' gem depends on faraday 2.0 version
# this dependency breaks the slack-ruby-client gem # this dependency breaks the slack-ruby-client gem
gem 'google-cloud-translate-v3' gem 'google-cloud-translate-v3'

View File

@@ -4,7 +4,7 @@ default: &default
host: <%= ENV.fetch('POSTGRES_HOST', 'localhost') %> host: <%= ENV.fetch('POSTGRES_HOST', 'localhost') %>
port: <%= ENV.fetch('POSTGRES_PORT', '5432') %> port: <%= ENV.fetch('POSTGRES_PORT', '5432') %>
# ref: https://github.com/mperham/sidekiq/issues/2985#issuecomment-531097962 # ref: https://github.com/mperham/sidekiq/issues/2985#issuecomment-531097962
pool: <%= Sidekiq.server? ? 5 : ENV.fetch('RAILS_MAX_THREADS', 5) %> pool: <%= Sidekiq.server? ? ENV.fetch('SIDEKIQ_CONCURRENCY', 10) : ENV.fetch('RAILS_MAX_THREADS', 5) %>
variables: variables:
# we are setting this value to be close to the racktimeout value. we will iterate and reduce this value going forward # we are setting this value to be close to the racktimeout value. we will iterate and reduce this value going forward
statement_timeout: <%= ENV["POSTGRES_STATEMENT_TIMEOUT"] || "14s" %> statement_timeout: <%= ENV["POSTGRES_STATEMENT_TIMEOUT"] || "14s" %>

View File

@@ -4,7 +4,7 @@
# pick it up automatically. # pick it up automatically.
--- ---
:verbose: false :verbose: false
:concurrency: <%= ENV.fetch("SIDEKIQ_CONCURRENCY", 5) %> :concurrency: <%= ENV.fetch("SIDEKIQ_CONCURRENCY", 10) %>
:timeout: 25 :timeout: 25
:max_retries: 3 :max_retries: 3
@@ -33,4 +33,4 @@
production: production:
:concurrency: <%= ENV.fetch("SIDEKIQ_CONCURRENCY", 10) %> :concurrency: <%= ENV.fetch("SIDEKIQ_CONCURRENCY", 10) %>
staging: staging:
:concurrency: <%= ENV.fetch("SIDEKIQ_CONCURRENCY", 5) %> :concurrency: <%= ENV.fetch("SIDEKIQ_CONCURRENCY", 10) %>