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-17 23:48:50 -05: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-17 23:48:50 -05:00
Discourse.redis.del(self.class.heartbeat_key)
end
end
end