feat: wire ansible blueprint, startup interrupted-run marker, git-pull task, cleanup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,7 @@ from sqlalchemy import delete
|
||||
|
||||
from fablednetmon.models.monitors import DnsResult, PingResult
|
||||
from fablednetmon.models.metrics import PluginMetric
|
||||
from fablednetmon.models.ansible import AnsibleRun
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from quart import Quart
|
||||
@@ -25,6 +26,7 @@ async def run_cleanup(app: "Quart") -> None:
|
||||
(PingResult, PingResult.probed_at),
|
||||
(DnsResult, DnsResult.resolved_at),
|
||||
(PluginMetric, PluginMetric.recorded_at),
|
||||
(AnsibleRun, AnsibleRun.started_at),
|
||||
]:
|
||||
result = await session.execute(
|
||||
delete(model).where(ts_col < cutoff)
|
||||
|
||||
Reference in New Issue
Block a user