queues #15

Merged
emmatveev merged 11 commits from queues into prod 2024-11-25 00:07:15 +03:00
Showing only changes of commit 2425ee2988 - Show all commits

View File

@ -1,4 +1,5 @@
import json import json
import os
import typing import typing
import urllib.parse import urllib.parse
from threading import Thread from threading import Thread
@ -112,3 +113,13 @@ class PlatformClient:
def get_experiment(self, name): def get_experiment(self, name):
return self.experiment_storage[name] return self.experiment_storage[name]
platform = PlatformClient(
os.getenv('PLATFORM_SECURITY_TOKEN'),
'РУЗ Бот',
os.getenv('STAGE'),
['words'],
['alice'],
need_poll=True,
)