Open christeefy opened 1 year ago
Hi @christeefy - do you only want this config to be applied when the run is triggered from the reconciliation sensor? Or would you want it to be applied any time the asset is materialized (e.g. from the UI)?
If the former, I'm curious why?
What's the use case?
I understand that it’s possible to parametrize
asset
s usingconfig_schema
s. However, I’m not quite sure how I can supply these config values to assets in a “reactive” setting (i.e. triggered by reconciliation sensors).Here's a minimal code example:
Without a way to specify config values for
b
, the SensorDaemon raises an error whenever the reconciliation sensor is activated / triggered indagster dev
:From some discussions with the Dagster slack community, I'm guessing that there's no way to supply config values currently to such assets.
Ideas of implementation
Based on my limited understanding of the codebase internals, we normally would provide config values to a
RunRequest(run_config=...)
in a@sensor
.Since the reconciliation sensor is initialized using
build_asset_reconciliation_sensor
, we may be able to extend that builder with arun_config
/config
argument:Additional information
Looking forward to hear feedback on this proposal. If it's not too complicated to implement, I'd like to take a stab at this with some guidance of course 😊
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.