I have an asset which is configured to do retries....
# ask-community
s
I have an asset which is configured to do retries. My asset’s computation uses certain tags on the run, and I’d like to validate that the tags are valid before executing. But on a validation failure, the retries execute! Is there some way to raise an exception which signals to Dagster that an error is fatal, and the op/job should not be retried?
🤖 1
r
https://docs.dagster.io/_apidocs/ops#dagster.Failure Something like in your code would resolve this:
Copy code
raise Failure(allow_retries=False)
s
Perfect! Thanks
dagster docs feedback 1
r
Noted! Thanks for the feedback