mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +02:00
refactor(automations): extract dispatch_run; move manual adapter under triggers/manual/dispatch.py
This commit is contained in:
parent
8c32455818
commit
861b91004d
6 changed files with 97 additions and 56 deletions
7
surfsense_backend/app/automations/dispatch/errors.py
Normal file
7
surfsense_backend/app/automations/dispatch/errors.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
"""Dispatch errors raised when a fire request cannot be turned into a run."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
class DispatchError(Exception):
|
||||
"""A dispatch could not proceed (missing trigger, invalid inputs, ...)."""
|
||||
Loading…
Add table
Add a link
Reference in a new issue