catch Asset Definition Exception #19142
Replies: 2 comments 1 reply
-
Hi @yamhirotoCS -- two general categories of ideas:
# this call may return an empty list if fivetran is down
fivetran_assets = get_fivetran_assets(...)
fivetran_job = define_asset_job(asset_selection=fivetran_assets) This solution would allow for empty jobs to be created in these situations.
try:
defs = Definitions(assets=assets, ...)
except:
dummy_assets = ...
defs = Definitions(assets=assets + dummy_assets, ...) Without knowing more about your setup, it might be difficult to get the actual set of required dummy assets, or maybe it's just something along the lines of "any asset key explicitly mentioned in a job's AssetSelection" |
Beta Was this translation helpful? Give feedback.
-
I am unable to catch any exception, I was able to add some breakpoints() and navigated with the debugger to see how the flow was going : it somehow goes to
I was able to use the debugger with : I guess I need to review the dagster architecture |
Beta Was this translation helpful? Give feedback.
-
Hello,
Our Dagster loads instance from several tools, such as Airbyte, Fivetran, and a table containing dashboard names.
Right now, our dagster instance throws an error and becomes unusable if :
If some assets become unavailable for the reason above, I still want my Dasgter instance to stand and load the other 'healthy' jobs.
How can we catch Exception related to AssetSelection when jobs are being loaded? :
_DagsterInvalidSubsetError: AssetKey(s) {AssetKey(['prefix', 'key'])} were selected, but no AssetsDefinition objects supply these keys_
I would then simply replace it with a dummy asset. until the root cause is fixed
Beta Was this translation helpful? Give feedback.
All reactions