Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Run Timeline] Don't drop job data if locations within the FutureTicksQuery fails #27944

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

salazarm
Copy link
Contributor

Summary & Motivation

Currently, if the FutureTicksQuery itself fails we recover by returning the ongoing runs and complete runs data that we have.

However, if the query doesn't fail then we end up iterating over all of the locations within it and constructing a jobs array with all of the rows of the timeline. The problem is that this construction relies on the jobs returned by FutureTicksQuery. If FutureTicksQuery doesn't return a particular job then we drop the data for that job completely. To fix this track which keys we've added via the FutureTicksQuery and then do a second pass where we add data for any jobs that were not in the FutureTicksQuery

How I Tested These Changes

Loaded the Run timeline for a customer with a failing location entry

Changelog

Insert changelog entry or delete this section.

Copy link

github-actions bot commented Feb 20, 2025

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-ofpuclmrf-elementl.vercel.app
https://salazarm-fix-runs-timeline.core-storybook.dagster-docs.io

Built with commit 1d5a068.
This pull request is being automatically deployed with vercel-action

@salazarm salazarm merged commit f547744 into master Feb 20, 2025
6 of 7 checks passed
@salazarm salazarm deleted the salazarm/fix-runs-timeline branch February 20, 2025 15:30
cmpadden pushed a commit that referenced this pull request Feb 20, 2025
…sQuery fails (#27944)

## Summary & Motivation

Currently, if the FutureTicksQuery itself fails we recover by returning
the ongoing runs and complete runs data that we have.

However, if the query doesn't fail then we end up iterating over all of
the locations within it and constructing a `jobs` array with all of the
rows of the timeline. The problem is that this construction relies on
the jobs returned by FutureTicksQuery. If FutureTicksQuery doesn't
return a particular job then we drop the data for that job completely.
To fix this track which keys we've added via the FutureTicksQuery and
then do a second pass where we add data for any jobs that were not in
the FutureTicksQuery

## How I Tested These Changes

Loaded the Run timeline for a customer with a failing location entry


## Changelog

> Insert changelog entry or delete this section.
cmpadden pushed a commit that referenced this pull request Feb 20, 2025
…sQuery fails (#27944)

## Summary & Motivation

Currently, if the FutureTicksQuery itself fails we recover by returning
the ongoing runs and complete runs data that we have.

However, if the query doesn't fail then we end up iterating over all of
the locations within it and constructing a `jobs` array with all of the
rows of the timeline. The problem is that this construction relies on
the jobs returned by FutureTicksQuery. If FutureTicksQuery doesn't
return a particular job then we drop the data for that job completely.
To fix this track which keys we've added via the FutureTicksQuery and
then do a second pass where we add data for any jobs that were not in
the FutureTicksQuery

## How I Tested These Changes

Loaded the Run timeline for a customer with a failing location entry


## Changelog

> Insert changelog entry or delete this section.
gibsondan pushed a commit that referenced this pull request Feb 20, 2025
…sQuery fails (#27944)

## Summary & Motivation

Currently, if the FutureTicksQuery itself fails we recover by returning
the ongoing runs and complete runs data that we have.

However, if the query doesn't fail then we end up iterating over all of
the locations within it and constructing a `jobs` array with all of the
rows of the timeline. The problem is that this construction relies on
the jobs returned by FutureTicksQuery. If FutureTicksQuery doesn't
return a particular job then we drop the data for that job completely.
To fix this track which keys we've added via the FutureTicksQuery and
then do a second pass where we add data for any jobs that were not in
the FutureTicksQuery

## How I Tested These Changes

Loaded the Run timeline for a customer with a failing location entry


## Changelog

> Insert changelog entry or delete this section.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants