forked from Gitlink/forgeplus
FIX updage sidekiq cron
This commit is contained in:
parent
f959b38a89
commit
1e9bd451e5
|
@ -1,10 +1,10 @@
|
|||
redis_config = Rails.application.config_for(:redis)
|
||||
sidekiq_url = redis_config["url"]
|
||||
sidekiq_url = redis_config["url"] || 'redis://localhost:6379/0'
|
||||
|
||||
Sidekiq.configure_server do |config|
|
||||
config.redis = { url: sidekiq_url }
|
||||
|
||||
schedule_file = "config/schedule.yml"
|
||||
schedule_file = "config/sidekiq_cron.yml"
|
||||
if File.exists?(schedule_file)
|
||||
Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file)
|
||||
end
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
sync_gitea_repo_updated_at:
|
||||
cron: "0 0 * * * "
|
||||
class: "SyncRepoUpdateTimeJob"
|
||||
queue: default
|
|
@ -0,0 +1,5 @@
|
|||
sync_gitea_repo_update_time:
|
||||
cron: "0 0 * * * "
|
||||
class: "SyncRepoUpdateTimeJob"
|
||||
queue: default
|
||||
description: 'sync gitea repo update time
|
Loading…
Reference in New Issue