Malo PARIS
06/01/2023, 9:01 AMbuild_asset_reconciliation_sensor
Attached my experimental assets :
asset1
to 5
10 min freshness policy ('test' group)
asset6
and asset7
has 2 min freshness policy ('sensor' group)
My sensor code :
freshness_sla_sensor = build_asset_reconciliation_sensor(
name="freshness_sla_sensor",
asset_selection=AssetSelection.groups("sensor"),
default_status=DefaultSensorStatus.STOPPED,
description="My SLA Sensor",
)
My expectation :
the freshness_sla_sensor
trigger all needed assets
run when asset6
or asset7
are not respecting their freshness policy
My ultimate goal :
avoid unnecessary materialization of assets asset1
to 5
It works when I use AssetSelection.all()
but don't want asset1
to 5
to materialize on its own
With AssetSelection.groups("sensor")
the sensor skipped
all the tick..
Thanks for your help !Sean Lopp
06/01/2023, 5:01 PMAssetSelection.groups("sensor")
the sensor is only allowed to run asset6 and asset7, but it knows that those assets can not be run without their upstreams running, so I'd expect it to not launch runs and instead those two assets would just be flagged as overdue
More broadly, I don't think I understand your current setup. How would asset6 and asset7 have a 2 minute policy when the upstreams have a 10 minute policy? Wouldn't that cause un-necessary runs for asset 6 and 7 since they'd be processing every 2 minutes inputs that only change every 10 minutes?
cc @owen our freshness expert as wellSean Lopp
06/01/2023, 5:01 PMMalo PARIS
06/01/2023, 5:56 PMsandy
06/01/2023, 10:50 PMbuild_asset_reconciliation_sensor
. The latter is deprecated and will go away eventually.Malo PARIS
06/02/2023, 10:00 AMAutoMaterializePolicy
👍sandy
06/05/2023, 10:31 PMFreshnessPolicy(cron_schedule="0 6 * * *", maximum_lag_minutes=24 * 60)
• on asset 7, assign lazy auto-materialize policy and FreshnessPolicy(cron_schedule="0 22 * * *", maximum_lag_minutes=24 * 60)
Malo PARIS
06/06/2023, 7:01 AMjobs
and schedules
I could limit the Op
concurrency with this :
config={
"execution": {
"config": {
"multiprocess": {
"max_concurrent": 3, # limits concurrent execution to 3
},
}
}
},
Is it possible to do this with the execution launched for auto-materialize
?
As we don't explicitly declare jobs
in this case, we can't apply op/asset-level concurrencysandy
06/09/2023, 6:07 PMDefinitions
level and apply that config to the executorsandy
06/09/2023, 6:07 PM