Check if this worker is the owner of the channel
(self, channel_id)
| 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""" |
no test coverage detected