discourse/app/jobs/regular/run_heartbeat.rb

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

15 lines
346 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
class RunHeartbeat < ::Jobs::Base
def self.heartbeat_key
"heartbeat_last_run"
end
def execute(args)
2024-12-18 12:48:50 +08:00
Discourse.redis.del(self.class.heartbeat_key)
end
end
end