mirror of
https://github.com/discourse/discourse.git
synced 2024-12-22 12:23:46 +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
|