songtianlun
78722caeb9
- Standardized quotation marks in Gemfile and Ruby files - Improved consistency for Sidekiq and Sidekiq Scheduler - Removed unnecessary blank line in GenerateWeatherArtWorker class These changes ensure a consistent coding style across the project, making it easier to read and maintain. Adjustments to the Gemfile update the formatting without altering the functionality.
10 lines
246 B
Ruby
10 lines
246 B
Ruby
require "sidekiq"
|
|
require "sidekiq-scheduler"
|
|
|
|
Sidekiq.configure_server do |config|
|
|
config.on(:startup) do
|
|
Sidekiq.schedule = YAML.load_file(File.expand_path("../../sidekiq.yml", __FILE__))
|
|
Sidekiq::Scheduler.reload_schedule!
|
|
end
|
|
end
|