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:
parent
4d38dad1cf
commit
719a523cc9
@ -1,9 +1,9 @@
|
||||
# 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
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user