Yohann Potier
12/01/2022, 9:21 PMowen
12/01/2022, 9:30 PMcontext.instance
, or if you're not in an op, you can call instance = DagsterInstance.get()
to load an instance based on the dagster.yaml
file pointed to by your $DAGSTER_HOME environment variable (https://docs.dagster.io/_apidocs/internals#dagster.DagsterInstance). From there, you can call instance.get_runs
(https://sourcegraph.com/github.com/dagster-io/dagster/-/blob/python_modules/dagster/dagster/_core/instance/__init__.py?L1341:5), which you could pass a RunsFilter into (if desired)Yohann Potier
12/02/2022, 1:57 AM