mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-31 19:45:15 +02:00
refactor(automations): move agent_task to builtin and restructure dispatch
This commit is contained in:
parent
f356e304e8
commit
30fff9e52f
22 changed files with 142 additions and 133 deletions
|
|
@ -13,7 +13,7 @@ from typing import Any
|
|||
from sqlalchemy import select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from app.automations.dispatch import start_run
|
||||
from app.automations.dispatch import launch_run
|
||||
from app.automations.persistence.enums.trigger_type import TriggerType
|
||||
from app.automations.persistence.models.trigger import AutomationTrigger
|
||||
from app.celery_app import celery_app
|
||||
|
|
@ -58,7 +58,7 @@ async def _start_one(
|
|||
session: AsyncSession, *, trigger: AutomationTrigger, event: Event
|
||||
) -> None:
|
||||
try:
|
||||
run = await start_run(
|
||||
run = await launch_run(
|
||||
session=session,
|
||||
trigger=trigger,
|
||||
runtime_inputs=event_runtime_inputs(event),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue