Chris Comeau
06/13/2023, 5:45 PMrun_queue:
tag_concurrency_limits:
- key: "asset"
value:
applyLimitPerUniqueValue: true
limit: 1
I might be thinking of all this the wrong way. Basically the behaviour I'm looking for is:
- avoid overlapping execution of the same asset op
- always retry assets after failure after some delay, never "give up" in a way that requires manual intervention. (right now I think I have this handled by having AutoMaterializePolicy + FreshnessPolicy with no RetryPolicy, with a retry interval equal to the freshness policy interval). For more frequent "in-run" retries, raising RetryRequested exception.
Maybe an easier approach: a different asset config that adjusts the timing here
https://docs.dagster.io/concepts/assets/asset-auto-execution#auto-materializing-assets-
Dagster won't try to auto-materialize that asset again until it would auto-materialize it if the failed run had succeeded. I.e., if an asset has a daily freshness policy, and it fails, Dagster won't auto-materialize it again until the next day.So say we have a daily freshness policy, but want it to retry auto-materialize at 15 minute intervals in case of failure, have that retry_interval as another argument to the FreshnessPolicy. When overdue, and failing, how often to retry (but in a new run).
owen
06/14/2023, 7:12 PMChris Comeau
06/15/2023, 8:53 PM