Skip to content

Commit

Permalink
change int to str to make it json marshalable
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed Oct 4, 2024
1 parent 41d8d19 commit 2ac6959
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tesk/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class TeskConstants(BaseModel):
TASKMASTER_IMAGE_NAME: str = "docker.io/elixircloud/tesk-core-taskmaster"
TASKMASTER_IMAGE_VERSION: str = "latest"
TASKMASTER_SERVICE_ACCOUNT_NAME: str = "taskmaster"
FILER_BACKOFF_LIMIT: int = 2
EXECUTOR_BACKOFF_LIMIT: int = 2
FILER_BACKOFF_LIMIT: str = "2"
EXECUTOR_BACKOFF_LIMIT: str = "2"

class Config:
"""Configuration for class."""
Expand Down
4 changes: 2 additions & 2 deletions tesk/custom_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class Taskmaster(BaseModel):
environment: Optional[Dict[str, str]] = None
serviceAccountName: str = tesk_constants.TASKMASTER_SERVICE_ACCOUNT_NAME
executorSecret: Optional[ExecutorSecret] = None
filerBackoffLimit: int = tesk_constants.FILER_BACKOFF_LIMIT
executorBackoffLimit: int = tesk_constants.EXECUTOR_BACKOFF_LIMIT
filerBackoffLimit: str = tesk_constants.FILER_BACKOFF_LIMIT
executorBackoffLimit: str = tesk_constants.EXECUTOR_BACKOFF_LIMIT


class CustomConfig(BaseModel):
Expand Down

0 comments on commit 2ac6959

Please sign in to comment.