Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet committed Nov 22, 2024
1 parent a133062 commit e7560c1
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 43 deletions.
4 changes: 1 addition & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ gem "rails", "~> 7.1.3.4"
gem "redis"
gem "sidekiq"
gem "dry-validation"
gem 'solid_queue'
gem 'solid_queue', "~> 1.0.2"

# Security
gem "bcrypt"
Expand Down Expand Up @@ -105,8 +105,6 @@ group :development, :test do
gem "debug", platforms: %i[mri mingw x64_mingw], require: false
gem "dotenv"
gem "i18n-tasks", git: "https://github.com/glebm/i18n-tasks.git"
gem "mission_control-jobs"
gem "propshaft"
gem "rspec-rails"
gem "simplecov", require: false
gem "webmock"
Expand Down
27 changes: 2 additions & 25 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,6 @@ GEM
httpclient (2.8.3)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
importmap-rails (2.0.1)
actionpack (>= 6.0.0)
activesupport (>= 6.0.0)
railties (>= 6.0.0)
io-console (0.7.2)
irb (1.14.0)
rdoc (>= 4.0.0)
Expand Down Expand Up @@ -385,13 +381,6 @@ GEM
mini_mime (1.1.5)
mini_portile2 (2.8.7)
minitest (5.25.1)
mission_control-jobs (0.3.1)
importmap-rails
irb (~> 1.13)
propshaft
rails (>= 7.1)
stimulus-rails
turbo-rails
monetize (1.13.0)
money (~> 6.12)
money (6.19.0)
Expand Down Expand Up @@ -647,11 +636,6 @@ GEM
racc
pg (1.5.7)
prism (1.2.0)
propshaft (1.0.0)
actionpack (>= 7.0.0)
activesupport (>= 7.0.0)
rack
railties (>= 7.0.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand Down Expand Up @@ -859,7 +843,7 @@ GEM
snaky_hash (2.0.1)
hashie
version_gem (~> 1.1, >= 1.1.1)
solid_queue (0.9.0)
solid_queue (1.0.2)
activejob (>= 7.1)
activerecord (>= 7.1)
concurrent-ruby (>= 1.3.1)
Expand All @@ -886,8 +870,6 @@ GEM
standard-performance (1.4.0)
lint_roller (~> 1.1)
rubocop-performance (~> 1.21.0)
stimulus-rails (1.3.4)
railties (>= 6.0.0)
stringio (3.1.1)
stripe (6.5.0)
strong_migrations (2.0.0)
Expand All @@ -900,9 +882,6 @@ GEM
timecop (0.9.10)
timeout (0.4.2)
trailblazer-option (0.1.2)
turbo-rails (2.0.10)
actionpack (>= 6.0.0)
railties (>= 6.0.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uber (0.1.0)
Expand Down Expand Up @@ -984,7 +963,6 @@ DEPENDENCIES
lago-expression!
lograge
logstash-event
mission_control-jobs
money-rails
multipart-post
mutex_m
Expand All @@ -996,7 +974,6 @@ DEPENDENCIES
paper_trail (~> 15.1)
parallel
pg
propshaft
puma (~> 6.4)
rack-cors
rails (~> 7.1.3.4)
Expand All @@ -1020,7 +997,7 @@ DEPENDENCIES
simplecov
slim
slim-rails
solid_queue
solid_queue (~> 1.0.2)
standard
stripe
strong_migrations
Expand Down
3 changes: 2 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class Application < Rails::Application
]

config.api_only = true
config.active_job.queue_adapter = :solid_queue # :sidekiq
config.active_job.queue_adapter = :solid_queue
config.solid_queue.connects_to = { database: { writing: :queue } }

# Configuration for active record encryption
config.active_record.encryption.hash_digest_class = OpenSSL::Digest::SHA1
Expand Down
3 changes: 0 additions & 3 deletions config/queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@ development:
test:
<<: *default

staging:
<<: *default

production:
<<: *default
19 changes: 10 additions & 9 deletions config/recurring.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# periodic_cleanup:
# class: CleanSoftDeletedRecordsJob
# queue: background
# args: [ 1000, { batch_size: 500 } ]
# schedule: every hour
# periodic_command:
# command: "SoftDeletedRecord.due.delete_all"
# priority: 2
# schedule: at 5am every day
# production:
# periodic_cleanup:
# class: CleanSoftDeletedRecordsJob
# queue: background
# args: [ 1000, { batch_size: 500 } ]
# schedule: every hour
# periodic_command:
# command: "SoftDeletedRecord.due.delete_all"
# priority: 2
# schedule: at 5am every day
2 changes: 0 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
mount Karafka::Web::App, at: '/karafka' if ENV['KARAFKA_WEB']
mount GraphiQL::Rails::Engine, at: '/graphiql', graphql_path: '/graphql' if Rails.env.development?

mount MissionControl::Jobs::Engine, at: "/jobs"

post '/graphql', to: 'graphql#execute'

# Health Check status
Expand Down

0 comments on commit e7560c1

Please sign in to comment.