- 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
10 lines
317 B
Ruby
10 lines
317 B
Ruby
# config/initializers/schedule_tasks.rb
|
|
Rails.application.config.after_initialize do
|
|
# begin
|
|
# RefreshSitemapWorker.perform_async
|
|
# Rails.logger.info "Startup task (RefreshSitemapWorker) scheduled successfully"
|
|
# rescue => e
|
|
# Rails.logger.error "Error scheduling startup task: #{e.message}"
|
|
# end
|
|
end
|