Skip to content

Commit

Permalink
chore: fl and mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed Sep 4, 2024
1 parent d0f2b54 commit 1de65e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tesk/api/kubernetes/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class JobConstants(BaseModel):
JOB_NAME_TASKM_PREFIX: str = "task-"
JOB_NAME_EXEC_PREFIX: str = "-ex-"
JOB_NAME_TASKM_RAND_PART_LENGTH: int = 4
JOB_NAME_EXEC_NO_LENGTH: int = (2,)
JOB_NAME_EXEC_NO_LENGTH: int = 2
JOB_NAME_FILER_SUF: str = "-outputs-filer"
RESOURCE_DISK_DEFAULT: float = 0.1
COMPLETED_STATES: Set[str] = {
Expand Down Expand Up @@ -204,7 +204,8 @@ class Config:

def get_code(self) -> str:
"""Return the pod state."""
return self.value
code: str = self.value
return code


class TeskK8sConstants(BaseModel):
Expand Down
3 changes: 2 additions & 1 deletion tesk/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ class Config:

frozen = True

tesk_constants = TeskConstants()

tesk_constants = TeskConstants()

0 comments on commit 1de65e1

Please sign in to comment.