mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Fix
This commit is contained in:
@@ -36,5 +36,6 @@ class ScheduleSyncWorkflow:
|
||||
await workflow.start_activity(
|
||||
syncronize,
|
||||
streamer.twitch.id,
|
||||
task_queue=MAIN_QUEUE,
|
||||
schedule_to_close_timeout=timedelta(minutes=5),
|
||||
)
|
||||
|
||||
@@ -28,5 +28,6 @@ class StreamsCheckWorkflow:
|
||||
async def run(self):
|
||||
await workflow.start_activity(
|
||||
check_streams_states,
|
||||
task_queue=MAIN_QUEUE,
|
||||
schedule_to_close_timeout=timedelta(minutes=1)
|
||||
)
|
||||
|
||||
@@ -7,6 +7,7 @@ from twitchAPI.helper import first
|
||||
from applications.twitch_webhook.state import UpdateEvent, EventType, State
|
||||
from applications.twitch_webhook.twitch.authorize import authorize
|
||||
from applications.twitch_webhook.activities.on_state_change import on_stream_state_change_activity, OnStreamStateChangeActivity
|
||||
from applications.temporal_worker.queues import MAIN_QUEUE
|
||||
|
||||
|
||||
@workflow.defn
|
||||
@@ -34,5 +35,6 @@ class OnChannelUpdateWorkflow:
|
||||
last_live_at=datetime.now(timezone.utc)
|
||||
),
|
||||
),
|
||||
task_queue=MAIN_QUEUE,
|
||||
schedule_to_close_timeout=timedelta(minutes=1)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user