mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 22:16:04 +08:00
12 lines
225 B
Ruby
12 lines
225 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Jobs
|
||
|
class PresenceChannelAutoLeave < ::Jobs::Scheduled
|
||
|
every PresenceChannel::DEFAULT_TIMEOUT.seconds
|
||
|
|
||
|
def execute(args)
|
||
|
PresenceChannel.auto_leave_all
|
||
|
end
|
||
|
end
|
||
|
end
|