MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / am_i_owner

Method am_i_owner

apps/proxy/live_proxy/server.py:445–448  ·  view source on GitHub ↗

Check if this worker is the owner of the channel

(self, channel_id)

Source from the content-addressed store, hash-verified

443 return None
444
445 def am_i_owner(self, channel_id):
446 """Check if this worker is the owner of the channel"""
447 owner = self.get_channel_owner(channel_id)
448 return owner == self.worker_id
449
450 def try_acquire_ownership(self, channel_id, ttl=30):
451 """Try to become the owner of this channel using proper locking"""

Callers 12

event_listenerMethod · 0.95
initialize_channelMethod · 0.95
ensure_output_formatMethod · 0.95
ensure_output_profileMethod · 0.95
stop_channelMethod · 0.95
cleanup_taskMethod · 0.95
stream_tsFunction · 0.80
remove_clientMethod · 0.80
_setup_streamingMethod · 0.80
_cleanupMethod · 0.80
change_stream_urlMethod · 0.80

Calls 1

get_channel_ownerMethod · 0.95

Tested by

no test coverage detected