Skip to content

Commit

Permalink
refactor: Lint agents-api (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad-mtos authored and github-actions[bot] committed Dec 9, 2024
1 parent 0b819b0 commit be22660
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agents-api/agents_api/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@
"TEMPORAL_ACTIVITY_AFTER_RETRY_TIMEOUT", default=30
)


def _parse_optional_int(val: str | None) -> int | None:
if not val or val.lower() == "none":
return None
return int(val)


# Temporal worker configuration
temporal_max_concurrent_workflow_tasks: int | None = _parse_optional_int(
env.str("TEMPORAL_MAX_CONCURRENT_WORKFLOW_TASKS", default=None)
Expand Down

0 comments on commit be22660

Please sign in to comment.