discourse/app/jobs/scheduled/heartbeat.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
353 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2024-12-18 12:48:50 +08:00
# This job is deprecated and will be removed in the future. The only reason it exists is for clean up purposes.
module Jobs
# used to ensure at least 1 sidekiq is running correctly
class Heartbeat < ::Jobs::Scheduled
2024-12-18 12:48:50 +08:00
every 24.hours
def execute(args)
::Jobs.enqueue(:run_heartbeat, {})
end
end
end