Page MenuHomeElementl

Only send a list of steps down to the backfill graphql mutation when a subset of steps has been selected

Authored by dgibson on Dec 18 2020, 3:53 AM.
Referenced Files
Unknown Object (File)
Thu, Sep 8, 9:58 PM
Unknown Object (File)
Aug 18 2022, 10:50 PM
Unknown Object (File)
Aug 18 2022, 6:11 AM
Unknown Object (File)
Aug 16 2022, 12:45 PM
Unknown Object (File)
Aug 15 2022, 8:27 PM
Unknown Object (File)
Aug 15 2022, 1:18 AM
Unknown Object (File)
Aug 15 2022, 12:39 AM
Unknown Object (File)
Aug 15 2022, 12:20 AM



Somebody in #general reported that they were getting an InvalidStepError when launching a backfill from graphql, but weren't getting that error when kicking off a backfill in the CLI.

Still getting to the bottom of why exactly that would be happening, but while trying to figure it I noticed that we always send the full list of steps down whenever you kick off a backfill, even when you haven't specified a step subset. I think in that was changed? Generally it should be harmless (and I still want to figure out why this person in #general is running into an InvalidStepError - that should only happen when there's some step in the UI that isn't actually in the execution plan when you go to launch the run), but there's no need to list out all the steps in the common case when you want to do a regular backfill with no step subset,

Test Plan

Kick off a normal backfill in dagit, watch it complete successfully and the steps get filled in,
Kick off a re-execution backfill with a step subset, watch only those steps get re-executed.

Diff Detail

R1 dagster
Lint Not Applicable
Tests Not Applicable

Event Timeline

this change also makes the button in the dialog just say "Launch 5 runs" rather than "Launch 5 runs (N selected steps)" when you haven't selected a subset (or have selected a subset that's the whole set)

This revision is now accepted and ready to land.Dec 18 2020, 6:23 PM