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