Skip to content

Commit

Permalink
build: resources
Browse files Browse the repository at this point in the history
  • Loading branch information
cbini committed Jul 4, 2024
1 parent 604c3c4 commit 6f012da
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ lint:
- ruff@0.5.0
- shellcheck@0.10.0
- shfmt@3.6.0
- sqlfluff@3.0.7
- sqlfluff@3.1.0
- sqlfmt@0.21.3
- svgo@3.3.2
- taplo@0.8.1
Expand Down
3 changes: 1 addition & 2 deletions src/teamster/code_locations/kippcamden/powerschool/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
build_powerschool_table_asset(
asset_key=[CODE_LOCATION, "powerschool", a["asset_name"]],
local_timezone=LOCAL_TIMEZONE,
op_tags={MAX_RUNTIME_SECONDS_TAG: (60 * 10)},
**a,
op_tags={MAX_RUNTIME_SECONDS_TAG: (60 * 10), **a.get("op_tags", {})},
)
for a in config_from_files([(f"{config_dir}/assets-nonpartition.yaml")])["assets"]
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ assets:
- asset_name: spenrollments
- asset_name: studenttest
- asset_name: studenttestscore
op_tags:
dagster-k8s/config:
container_config:
resources:
requests:
cpu: 750m
limits:
cpu: 750m
- asset_name: test
- asset_name: testscore
- asset_name: u_clg_et_stu
Expand Down
4 changes: 2 additions & 2 deletions src/teamster/code_locations/kippnewark/powerschool/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
build_powerschool_table_asset(
asset_key=[CODE_LOCATION, "powerschool", a["asset_name"]],
local_timezone=LOCAL_TIMEZONE,
op_tags={MAX_RUNTIME_SECONDS_TAG: (60 * 10)},
**a,
partition_column=a["partition_column"],
op_tags={MAX_RUNTIME_SECONDS_TAG: (60 * 10), **a.get("op_tags", {})},
)
for a in config_from_files([(f"{config_dir}/assets-full.yaml")])["assets"]
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# has partition col but not using it
assets:
# not using partitions
- asset_name: cc
partition_column: transaction_date
- asset_name: courses
Expand Down Expand Up @@ -68,6 +68,14 @@ assets:
partition_column: whenmodified
- asset_name: studentcontactdetail
partition_column: whenmodified
op_tags:
dagster-k8s/config:
container_config:
resources:
requests:
cpu: 750m
limits:
cpu: 750m
- asset_name: studentcorefields
partition_column: whenmodified
- asset_name: studentrace
Expand Down
4 changes: 2 additions & 2 deletions src/teamster/code_locations/kipptaf/dagster-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ locations:
resources:
requests:
cpu: 1250m
memory: 1.5Gi
memory: 2.0Gi
limits:
cpu: 1250m
memory: 1.5Gi
memory: 2.0Gi
env:
- name: ADP_SFTP_PASSWORD
valueFrom:
Expand Down

0 comments on commit 6f012da

Please sign in to comment.