Pablo Beltran
04/03/2023, 1:20 AMsandy
04/03/2023, 4:09 PMsandy
04/03/2023, 4:09 PMPablo Beltran
04/03/2023, 4:11 PMPablo Beltran
04/03/2023, 4:12 PMsandy
04/03/2023, 4:23 PMbuild_asset_reconciliation_sensor
Pablo Beltran
04/03/2023, 4:45 PMPablo Beltran
04/03/2023, 4:45 PMsandy
04/03/2023, 4:52 PMsandy
04/03/2023, 4:52 PMPablo Beltran
04/03/2023, 6:20 PMPablo Beltran
04/03/2023, 6:46 PM'marts__user_metrics'
This is what the code looks like:
USER_METRICS_RECONCILIATION_SENSORS = [build_asset_reconciliation_sensor(
name='user_metrics_reconciliation_sensor',
minimum_interval_seconds=60 * 5,
asset_selection=AssetSelection.groups('marts__user_metrics'),
description='''
This sensor will make it so that and DBT model that is
put under the marts/user_metrics directory will be automatically
run whenever its dependecies are updated.
'''
)]
Also another weird thing is that when I go to assets that are unrelated to the marts__user_metrics
asset group and look at the sensors (where it says '10 sensors') I see basically all of the reconciliation sensors I have set up for the repo even if they have nothing to do with that asset.sandy
04/04/2023, 3:47 PMSo here is the asset, as you can see its dep has some partitions that have been materialized successfully and yet it has not kicked off any runs.My suspicion about what's going on is that the asset reconciliation sensor currently doesn't launch runs for partitions that are more than a day old. We made it work like this because many users found it concerning that, when they first turned on the sensor, it would launch an enormous number of runs to fill in old partitions. So you would currently need to run a backfill manually for those partitions. We have a plan to make this customizable in the near future: https://github.com/dagster-io/dagster/discussions/13300.
sandy
04/04/2023, 3:48 PMAlso another weird thing is that when I go to assets that are unrelated to theThis is a silly artifact of how this is all implemented that shouldn't be related to the problem you're facing. We're working on moving asset reconciliation to a daemon instead of a sensor, which should solve this.asset group and look at the sensors (where it says '10 sensors') I see basically all of the reconciliation sensors I have set up for the repo even if they have nothing to do with that asset.marts__user_metrics