https://dagster.io/ logo
#dagster-feedback
Title
# dagster-feedback
b

Bastien Kerysaouen

08/18/2023, 9:17 PM
Code snippet in the doc often refer to the context variable but don't really use it. Additionally, whether context is useful or not, it is very rarely provided with a type hint, which, for a beginner, makes it extremely difficult to understand what are the available attributes.
dagster docs feedback 1
🤖 1
👍 2
It is only after I encountered one of those types in the doc that I finally understood what was the context and how to use it. Before that, seeing these random contexts here and there was confusing.
👍 1
t

Tim Castillo

08/18/2023, 9:31 PM
Thanks for the feedback! We should update our examples. It wasn't until recently where we added types for the context object. If you're using ops, then there's
OpExecutionContext
and assets have their own
AssetExecutionContext
3 Views