-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[graphql] Resolver to terminate runs (#16707)
This PR adds a resolver to terminate a set of runs, intended to support a "terminate all queued runs" button. Under the hood, it calls `instance.optimize_for_webserver` to pool connections and reduce query time. The implementation in this PR takes 3.5 min to terminate 5K runs, compared to ~15 min without the `optimize_for_webserver` call. The resolver accepts a list of run IDs. This is intended so that the front end can call `instance.get_run_ids(cursor=..., limit=...)` to fetch run IDs in batches, then pass this to the resolver. This enables displaying a progress bar.
- Loading branch information
1 parent
79e0e0c
commit c9cbe64
Showing
10 changed files
with
272 additions
and
27 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
js_modules/dagster-ui/packages/ui-core/src/graphql/possibleTypes.generated.json
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 11 additions & 1 deletion
12
js_modules/dagster-ui/packages/ui-core/src/graphql/schema.graphql
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 40 additions & 2 deletions
42
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.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
js_modules/dagster-ui/packages/ui-core/src/runs/types/RunUtils.types.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c9cbe64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagit-core-storybook ready!
✅ Preview
https://dagit-core-storybook-9npkcy31g-elementl.vercel.app
Built with commit c9cbe64.
This pull request is being automatically deployed with vercel-action