Skip to content

Commit

Permalink
More spot fixes (#2157)
Browse files Browse the repository at this point in the history
* Fix github PR query

* More k8s config spot fixes
  • Loading branch information
ravenac95 authored Sep 16, 2024
1 parent fbdce22 commit b995cbe
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ select
pre.actor.login as actor_login,
CONCAT("PULL_REQUEST_", UPPER(JSON_VALUE(pre.payload, "$.action")))
as `type`,
JSON_VALUE(ie.payload, "$.number") as `number`
JSON_VALUE(pre.payload, "$.number") as `number`
from pull_request_events as pre
25 changes: 13 additions & 12 deletions warehouse/oso_dagster/assets/clickhouse_dbt_marts.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def clickhouse_assets_from_manifests_map(
asset_kwargs={
"op_tags": {
"dagster-k8s/config": {
"merge_behavior": "SHALLOW",
"resources": {
"requests": {
"cpu": "1000m",
Expand All @@ -98,19 +99,19 @@ def clickhouse_assets_from_manifests_map(
"memory": "1024Mi",
},
},
},
"pod_spec_config": {
"node_selector": {
"pool_type": "spot",
"pod_spec_config": {
"node_selector": {
"pool_type": "spot",
},
"tolerations": [
{
"key": "pool_type",
"operator": "Equal",
"value": "spot",
"effect": "NoSchedule",
}
],
},
"tolerations": [
{
"key": "pool_type",
"operator": "Equal",
"value": "spot",
"effect": "NoSchedule",
}
],
},
}
},
Expand Down
1 change: 1 addition & 0 deletions warehouse/oso_dagster/assets/open_collective.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def expenses(
),
op_tags={
"dagster-k8s/config": {
"merge_behavior": "SHALLOW",
"container_config": {
"resources": {
"requests": {"cpu": "2000m", "memory": "3584Mi"},
Expand Down
2 changes: 1 addition & 1 deletion warehouse/oso_dagster/factories/goldsky/additional.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def generated_asset_prefix(asset: AssetsDefinition):

base_tags = {
"dagster-k8s/config": {
"merge_behavior": "SHALLOW",
"pod_spec_config": {
"node_selector": {"pool_type": "standard"},
"tolerations": [
Expand All @@ -35,7 +36,6 @@ def generated_asset_prefix(asset: AssetsDefinition):
}
],
},
"merge_behavior": "SHALLOW",
},
}

Expand Down
1 change: 1 addition & 0 deletions warehouse/oso_dagster/factories/goldsky/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ def materialize_asset(

op_tags: Dict[str, Any] = {
"dagster-k8s/config": {
"merge_behavior": "SHALLOW",
"container_config": {
"resources": {
"requests": {"cpu": "2000m", "memory": "3584Mi"},
Expand Down

0 comments on commit b995cbe

Please sign in to comment.