2019-05-03 08:17:27 +10:00
|
|
|
# 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.
|
2014-04-23 13:13:18 +10:00
|
|
|
module Jobs
|
2019-10-02 14:01:53 +10:00
|
|
|
class RunHeartbeat < ::Jobs::Base
|
2019-08-30 11:26:16 +01:00
|
|
|
def self.heartbeat_key
|
2023-01-09 12:20:10 +00:00
|
|
|
"heartbeat_last_run"
|
2019-08-30 11:26:16 +01:00
|
|
|
end
|
|
|
|
|
2014-04-23 13:13:18 +10:00
|
|
|
def execute(args)
|
2024-12-18 12:48:50 +08:00
|
|
|
Discourse.redis.del(self.class.heartbeat_key)
|
2014-04-23 13:13:18 +10:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|