Skip to content

Commit

Permalink
schedule_every needs :first_in for tagging to work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Aug 14, 2019
1 parent bdf430d commit d6bf5b5
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions app/models/miq_schedule_worker/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,19 @@ def schedules_for_all_roles
# Schedule - Log current system configuration
every = worker_settings[:log_active_configuration_interval]

scheduler.schedule_every(every, :tags => [:vmdb_appliance_log_config, schedule_category]) do
enqueue(:vmdb_appliance_log_config)
end
scheduler.schedule_every(
every,
:first_in => every,
:tags => [:vmdb_appliance_log_config, schedule_category]
) { enqueue(:vmdb_appliance_log_config) }

# Schedule - Log current database statistics and bloat
every = worker_settings[:log_database_statistics_interval]
scheduler.schedule_every(every, :tags => [:log_all_database_statistics, schedule_category]) do
enqueue(:vmdb_database_log_all_database_statistics)
end
scheduler.schedule_every(
every,
:first_in => every,
:tags => [:log_all_database_statistics, schedule_category]
) { enqueue(:vmdb_database_log_all_database_statistics) }

# Schedule - Update Server Statistics
every = worker_settings[:server_stats_interval]
Expand Down

0 comments on commit d6bf5b5

Please sign in to comment.