Jay
06/12/2023, 10:21 PMowen
06/12/2023, 10:49 PMJay
06/12/2023, 10:51 PMDagsterInstance.get()
will fail. Is there anyway to access the event records without the instance?owen
06/12/2023, 10:55 PMdagster.yaml
file in ~/.dagster/
Jay
06/12/2023, 10:58 PMdagster._core.errors.DagsterInvariantViolationError: $DAGSTER_HOME "/opt/dagster/dagster_home" is not a directory or does not exist. Dagster requires this environment variable to be set to an existing directory in your filesystem
. Just for context, our team uses Postgres to store run history information, so would that mean that by adding the following directory and then adding an empty dagster.yaml file I would be able to access the event_storage?owen
06/12/2023, 11:00 PMdagster.yaml
file, it's just that you don't have a copy of that locally? If so, you're correct that the empty dagster.yaml file wouldn't get you access to that remote storage.owen
06/12/2023, 11:01 PMJay
06/12/2023, 11:02 PMowen
06/12/2023, 11:03 PMcontext
object, i.e.
@op
def watcher_op(context: OpExecutionContext):
context.instance.get_event_records(...)
Jay
06/12/2023, 11:04 PMJay
06/12/2023, 11:05 PMowen
06/12/2023, 11:07 PMowen
06/12/2023, 11:08 PMJay
06/12/2023, 11:08 PMJay
06/12/2023, 11:09 PMowen
06/12/2023, 11:11 PMowen
06/12/2023, 11:11 PMJay
06/12/2023, 11:12 PMowen
06/12/2023, 11:14 PMJay
06/12/2023, 11:15 PMowen
06/12/2023, 11:16 PMJay
06/12/2023, 11:17 PMJay
06/12/2023, 11:52 PMEventLogRecord
and RunRecord
? When should I look the access one over the other?owen
06/12/2023, 11:54 PMJay
06/12/2023, 11:56 PM