broke out assets.py into an assets and sensors directory
This commit is contained in:
parent
0d7de37303
commit
37f23fda18
8 changed files with 782 additions and 707 deletions
|
|
@ -7,10 +7,16 @@ from dagster import (
|
|||
)
|
||||
from dagster_duckdb import DuckDBResource
|
||||
|
||||
import assets
|
||||
# Import asset modules
|
||||
from assets import config, gtfs_static, gtfs_realtime
|
||||
|
||||
# Import sensor modules
|
||||
from sensors import gtfs_realtime as gtfs_rt_sensors
|
||||
|
||||
from resources import MobilityDatabaseAPI
|
||||
|
||||
all_assets = load_assets_from_modules([assets])
|
||||
# Load all assets from the modules
|
||||
all_assets = load_assets_from_modules([config, gtfs_static, gtfs_realtime])
|
||||
|
||||
defs = Definitions(
|
||||
assets=all_assets,
|
||||
|
|
@ -20,7 +26,7 @@ defs = Definitions(
|
|||
target="*",
|
||||
default_status=DefaultSensorStatus.RUNNING,
|
||||
),
|
||||
assets.gtfs_rt_vehicles_sensor
|
||||
gtfs_rt_sensors.gtfs_rt_vehicles_sensor,
|
||||
],
|
||||
resources={
|
||||
"duckdb": DuckDBResource(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue