mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Increase channel result to support max of 1K channels for finding slack channel
This commit is contained in:
parent
0e9538d42a
commit
4e4aab56a8
@ -69,7 +69,7 @@ class SlackMonitor(Monitor):
|
|||||||
self.slack_client.api_test()
|
self.slack_client.api_test()
|
||||||
|
|
||||||
# Find channel ID
|
# Find channel ID
|
||||||
response = self.slack_client.conversations_list()
|
response = self.slack_client.conversations_list(limit=1000)
|
||||||
channel_id = [channel_info.get('id') for channel_info in response.data['channels']
|
channel_id = [channel_info.get('id') for channel_info in response.data['channels']
|
||||||
if channel_info.get('name') == self.channel]
|
if channel_info.get('name') == self.channel]
|
||||||
if not channel_id:
|
if not channel_id:
|
||||||
|
Loading…
Reference in New Issue
Block a user