-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
K8s docs ignore tag and show executor (#7053)
- Loading branch information
Showing
4 changed files
with
39 additions
and
18 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
26 changes: 26 additions & 0 deletions
26
examples/docs_snippets/docs_snippets/deploying/kubernetes/k8s_config_tag_op.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,26 @@ | ||
from dagster_k8s import k8s_job_executor | ||
|
||
from dagster import job, op | ||
|
||
|
||
# fmt: off | ||
# start_k8s_config | ||
@op( | ||
tags={ | ||
"dagster-k8s/config": { | ||
"container_config": { | ||
"resources": { | ||
"requests": {"cpu": "200m", "memory": "32Mi"}, | ||
} | ||
}, | ||
} | ||
} | ||
) | ||
def my_op(context): | ||
context.log.info("running") | ||
|
||
@job(executor_def=k8s_job_executor) | ||
def my_job(): | ||
my_op() | ||
# end_k8s_config | ||
# fmt: on |
3 changes: 2 additions & 1 deletion
3
examples/docs_snippets/docs_snippets_tests/deploying_tests/test_k8s_config_tag.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
8ad1195
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.
Successfully deployed to the following URLs:
dagster – ./docs/next
dagster.vercel.app
dagster-elementl.vercel.app
new-docs.dagster.io
docs.dagster.io
dagster-git-master-elementl.vercel.app