Skip to content
Discussion options

You must be logged in to vote

For the specific question of

Is there any way to get e.g the last successful run's run_id?

you can query the runs from the instance doing something like

instance = DagsterInstance.get()
runs = instance.get_runs(filters=PipelineRunsFilter(pipeline_name=pipeline_name, status=PipelineRunStatus.SUCCESS), limit=1)
# assert len(runs) == 1
last_success_id = runs[0].run_id

Fair warning though, at this stage of the project these instance APIs are still under development and may change.

Though I think the broader question points to a workflow that we could model better in the system cc @sryza

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@szalai1
Comment options

@smackesey
Comment options

@brdunkley
Comment options

Answer selected by szalai1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants