Skip to content

Commit

Permalink
formalize the delay between making a run and a backfill in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Aug 8, 2024
1 parent fa84a84 commit 60c8119
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 52 deletions.

Large diffs are not rendered by default.

222 changes: 180 additions & 42 deletions js_modules/dagster-ui/packages/ui-core/src/graphql/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,9 @@ def get_mega_runs(
instance, cursor=mega_run_cursor.run_cursor, limit=fetch_limit
)

if fetch_limit:
if (
fetch_limit and limit
): # if fetch_limit is non-None then limit must also be non-None, but check for pyright
# if we fetched limit+1 of either runs or backfills, we know there must be more results
# to fetch on the next call since we will return limit results for this call. Additionally,
# if we fetched more than limit of runs and backfill combined, we know there are more results
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class GrapheneBulkActionStatus(graphene.Enum):
class Meta:
name = "BulkActionStatus"

def to_dagster_run_status(self) -> GrapheneRunStatus:
def to_dagster_run_status(self):
"""Placeholder for this PR. Will do a more thurough pass to accurately convert backfill status
to DagsterRunStatus in a stacked branch.
"""
Expand Down
Loading

0 comments on commit 60c8119

Please sign in to comment.