Page MenuHomeElementl

intro RunRecord and get_run_rows -> get_run_records
ClosedPublic

Authored by yuhan on Jun 8 2021, 11:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 17, 12:37 PM
Unknown Object (File)
Wed, Mar 15, 9:59 AM
Unknown Object (File)
Wed, Mar 15, 9:41 AM
Unknown Object (File)
Mon, Mar 13, 1:52 PM
Unknown Object (File)
Tue, Mar 7, 12:54 AM
Unknown Object (File)
Tue, Feb 28, 3:04 PM
Unknown Object (File)
Mon, Feb 27, 2:06 PM
Unknown Object (File)
Feb 21 2023, 7:20 PM
Subscribers
None

Details

Summary

introduce a wrapper RunRecord to wrap run storage row

class RunRecord(NamedTuple):
    record_id: int
    pipeline_run: PipelineRun
    create_timestamp: datetime
    update_timestamp: datetime

rename get_run_rows to get_run_records and it returns List[RunRecord] instead of List of row dict

Test Plan

bk

Diff Detail

Repository
R1 dagster
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

yuhan added a child revision: Restricted Differential Revision.Jun 8 2021, 11:46 PM
yuhan added a parent revision: D7476: monitor sensor prototype.

I think this is a bit cleaner, thanks for the quick turn around

python_modules/dagster/dagster/core/instance/__init__.py
996–1010

nit: doc block here too?

python_modules/dagster/dagster/core/storage/pipeline_run.py
394–399

doc block explaining

python_modules/dagster/dagster/core/storage/runs/base.py
143–144

update

python_modules/dagster/dagster/core/storage/runs/in_memory.py
141–142

this should be easier now (or at least make a bit more sense)

This revision is now accepted and ready to land.Jun 9 2021, 2:20 PM
yuhan marked 4 inline comments as done.

udpate docstring