Browse Source

chore(api): Introduce variable truncation configuration

tags/2.0.0-beta.1
QuantumGhost 2 months ago
parent
commit
0cf8a80bdd
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      api/configs/feature/__init__.py

+ 17
- 0
api/configs/feature/__init__.py View File

) )




class WorkflowVariableTruncationConfig(BaseSettings):
WORKFLOW_VARIABLE_TRUNCATION_MAX_SIZE: PositiveInt = Field(
# 100KB
1024_000,
description="Maximum size for variable to trigger final truncation.",
)
WORKFLOW_VARIABLE_TRUNCATION_STRING_LENGTH: PositiveInt = Field(
50000,
description="maximum length for string to trigger tuncation, measure in number of characters",
)
WORKFLOW_VARIABLE_TRUNCATION_ARRAY_LENGTH: PositiveInt = Field(
100,
description="maximum length for array to trigger truncation.",
)


class WorkflowConfig(BaseSettings): class WorkflowConfig(BaseSettings):
""" """
Configuration for workflow execution Configuration for workflow execution
CeleryBeatConfig, CeleryBeatConfig,
CeleryScheduleTasksConfig, CeleryScheduleTasksConfig,
WorkflowLogConfig, WorkflowLogConfig,
WorkflowVariableTruncationConfig,
): ):
pass pass

Loading…
Cancel
Save