-
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.
[dagster-aws] Pipes AWS Glue Dagster run interruption handler (#23354)
## Summary & Motivation I decided it was a good idea to add an automatic Glue job cleanup handler as there is a change for Spark jobs to spend a lot of unnecessary resources otherwise. Had to rewrite the fake Glue clients to implement non-blocking job execution via `subprocess.Popen` Strong Inception vibes in this PR ## How I Tested These Changes - [x] Added a test with subprocess interruption. The test runs Dagster's `materialize` inside a `multiprocessing.Process`. Inside this process, the fake Glue client runs the Glue job in a `subprocess.Popen`. Once the Dagster process receives termination signal, the `PipesGlueClient` invokes the fake glue client to terminate the `subprocess.Popen` "job". We can register this call in the fake client and test for it.
- Loading branch information
1 parent
490ea61
commit 9fbb75e
Showing
3 changed files
with
302 additions
and
69 deletions.
There are no files selected for viewing
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.