Merge pull request #10179 from demarches-simplifiees/reliable_fetch

Tech: ajoute la gem reliable-fetch vendored dans gitlab
This commit is contained in:
LeSim 2024-03-26 13:54:36 +00:00 committed by GitHub
commit 783ae23428
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 0 deletions

View file

@ -39,6 +39,7 @@ gem 'flipper-ui'
gem 'fugit'
gem 'geocoder'
gem 'geo_coord', require: "geo/coord"
gem 'gitlab-sidekiq-fetcher', require: 'sidekiq-reliable-fetch', git: 'https://github.com/demarches-simplifiees/reliable-fetch.git'
gem 'gon'
gem 'graphql', '2.0.24'
gem 'graphql-batch', '0.5.1'

View file

@ -1,3 +1,11 @@
GIT
remote: https://github.com/demarches-simplifiees/reliable-fetch.git
revision: f547a270c402b0180091516d790434e83287fae7
specs:
gitlab-sidekiq-fetcher (0.11.0)
json (>= 2.5)
sidekiq (~> 7.0)
GIT
remote: https://github.com/heartcombo/devise.git
revision: edffc79bf05d7f1c58ba50ffeda645e2e4ae0cb1
@ -861,6 +869,7 @@ DEPENDENCIES
fugit
geo_coord
geocoder
gitlab-sidekiq-fetcher!
gon
graphql (= 2.0.24)
graphql-batch (= 0.5.1)

View file

@ -263,3 +263,6 @@ EXPIRE_USER_DELETION_JOB_LIMIT=10000
# write anything to disable cron jobs
CRON_JOBS_DISABLED=""
# disable SIDEKIQ_RELIABLE_FETCH
# SKIP_RELIABLE_FETCH="true"

View file

@ -15,6 +15,10 @@ if ENV.has_key?('REDIS_SIDEKIQ_SENTINELS')
password:,
role: :master
}
if ENV['SKIP_RELIABLE_FETCH'].blank?
Sidekiq::ReliableFetch.setup_reliable_fetch!(config)
end
end
Sidekiq.configure_client do |config|