This commit is contained in:
2025-04-22 01:17:42 +02:00
parent 2d8b767ae3
commit 4174d67084
3 changed files with 4 additions and 0 deletions

View File

@@ -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),
)

View File

@@ -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)
)

View File

@@ -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)
)