mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 19:44:36 +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
|