-
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.
- 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 static_partitioned_config, op, job | ||
|
||
|
||
@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