refactor: comment out startup task scheduling code

- Commented out the block that schedules the RefreshSitemapWorker
- This change was made to temporarily disable the startup task
- Maintains existing code structure without loss of functionality
This commit is contained in:
songtianlun 2025-04-09 16:14:22 +08:00
parent 4d38dad1cf
commit 719a523cc9

View File

@ -1,9 +1,9 @@
# config/initializers/schedule_tasks.rb # config/initializers/schedule_tasks.rb
Rails.application.config.after_initialize do Rails.application.config.after_initialize do
begin # begin
RefreshSitemapWorker.perform_async # RefreshSitemapWorker.perform_async
Rails.logger.info "Startup task (RefreshSitemapWorker) scheduled successfully" # Rails.logger.info "Startup task (RefreshSitemapWorker) scheduled successfully"
rescue => e # rescue => e
Rails.logger.error "Error scheduling startup task: #{e.message}" # Rails.logger.error "Error scheduling startup task: #{e.message}"
end # end
end end