changed gtfs_feed_downloads to a sensor instead of cron
This commit is contained in:
parent
37f23fda18
commit
97aa28e003
5 changed files with 176 additions and 17 deletions
|
|
@ -11,6 +11,7 @@ from dagster_duckdb import DuckDBResource
|
|||
from assets import config, gtfs_static, gtfs_realtime
|
||||
|
||||
# Import sensor modules
|
||||
from sensors import gtfs_static as gtfs_static_sensors
|
||||
from sensors import gtfs_realtime as gtfs_rt_sensors
|
||||
|
||||
from resources import MobilityDatabaseAPI
|
||||
|
|
@ -26,6 +27,8 @@ defs = Definitions(
|
|||
target="*",
|
||||
default_status=DefaultSensorStatus.RUNNING,
|
||||
),
|
||||
gtfs_static_sensors.gtfs_static_hourly_sensor,
|
||||
gtfs_static_sensors.gtfs_static_partition_update_sensor,
|
||||
gtfs_rt_sensors.gtfs_rt_vehicles_sensor,
|
||||
],
|
||||
resources={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue