Skip to content

Commit

Permalink
Add autoscaler_settings to FunctionData as well (#2874)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom authored Feb 14, 2025
1 parent ff81e71 commit 47f55f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions modal/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@ async def _load(self: _Function, resolver: Resolver, existing_object_id: Optiona
warm_pool_size=function_definition.warm_pool_size,
concurrency_limit=function_definition.concurrency_limit,
task_idle_timeout_secs=function_definition.task_idle_timeout_secs,
autoscaler_settings=function_definition.autoscaler_settings,
worker_id=function_definition.worker_id,
timeout_secs=function_definition.timeout_secs,
web_url=function_definition.web_url,
Expand Down
3 changes: 3 additions & 0 deletions modal_proto/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,9 @@ message FunctionData {
bool untrusted = 27; // If set, the function will be run in an untrusted environment.
bool snapshot_debug = 28; // For internal debugging use only.
bool runtime_perf_record = 29; // For internal debugging use only.

AutoscalerSettings autoscaler_settings = 31; // Bundle of parameters related to autoscaling

}

message FunctionExtended {
Expand Down

0 comments on commit 47f55f5

Please sign in to comment.