scaffold sensor triggered html download

This commit is contained in:
2025-07-28 19:38:37 +02:00
parent 25cccdb501
commit 8329d7ed68
5 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
from collections.abc import Iterator
from datetime import date
import jobs
import dagster as dg
@dg.sensor(job=jobs.raw_html_job)
def check_update(context: dg.SensorEvaluationContext) -> Iterator[dg.RunRequest]:
ic(context.cursor)
yield dg.RunRequest()
context.update_cursor(date.today().strftime("%Y-%m-%d"))