-
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.
Fix merging partition config into existing launchpad config (#17688)
## Summary & Motivation Fixes #17522 ## How I Tested These Changes created a job in the toys repository to test this
- Loading branch information
Showing
3 changed files
with
37 additions
and
5 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
16 changes: 16 additions & 0 deletions
16
python_modules/dagster-test/dagster_test/toys/partition_config.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from dagster import job, op, static_partitioned_config | ||
|
||
|
||
@static_partitioned_config(["a", "b", "c"]) | ||
def partconf(partition): | ||
return {"ops": {"op1": {"letter": partition}}} | ||
|
||
|
||
@op(config_schema={"letter": str}) | ||
def op1(): | ||
... | ||
|
||
|
||
@job(config=partconf) | ||
def job_with_partition_config(): | ||
op1() |
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
bef1219
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-5562cijtj-elementl.vercel.app
Built with commit bef1219.
This pull request is being automatically deployed with vercel-action