Skip to content

Commit

Permalink
app table regions
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Feb 26, 2025
1 parent 5501774 commit b4958b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions projects/fal/src/fal/cli/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def _apps_table(apps: list[AliasInfo]):
table.add_column("Startup Timeout")
table.add_column("Machine Type")
table.add_column("Active Workers")
table.add_column("Regions")

for app in apps:
table.add_row(
Expand All @@ -37,6 +38,7 @@ def _apps_table(apps: list[AliasInfo]):
str(app.startup_timeout),
" ".join(app.machine_types),
str(app.active_runners),
" ".join(app.valid_regions),
)

return table
Expand Down
4 changes: 3 additions & 1 deletion projects/fal/src/fal/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ class AliasInfo:
machine_types: list[str]
request_timeout: int
startup_timeout: int
valid_regions: list[str]


@dataclass
Expand Down Expand Up @@ -347,9 +348,10 @@ def _from_grpc_alias_info(message: isolate_proto.AliasInfo) -> AliasInfo:
max_multiplexing=message.max_multiplexing,
active_runners=message.active_runners,
min_concurrency=message.min_concurrency,
machine_types=message.machine_types,
machine_types=list(message.machine_types),
request_timeout=message.request_timeout,
startup_timeout=message.startup_timeout,
valid_regions=list(message.valid_regions),
)


Expand Down

0 comments on commit b4958b8

Please sign in to comment.