Skip to content

Commit

Permalink
remove inline typing and use constants
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed Oct 4, 2024
1 parent 71d9be1 commit 41d8d19
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tesk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ def get_taskmaster_template() -> V1Job:
"""
taskmaster_conf: Taskmaster = get_taskmaster_config()

job = V1Job(
api_version="batch/v1",
kind="Job",
return V1Job(
api_version=tesk_k8s_constants.k8s_constants.K8S_BATCH_API_VERSION,
kind=tesk_k8s_constants.k8s_constants.K8S_BATCH_API_JOB_TYPE,
metadata=V1ObjectMeta(
name=tesk_k8s_constants.label_constants.LABEL_JOBTYPE_VALUE_TASKM,
),
Expand Down Expand Up @@ -162,4 +162,3 @@ def get_taskmaster_template() -> V1Job:
)
),
)
return job

0 comments on commit 41d8d19

Please sign in to comment.