@@ -397,6 +397,7 @@ class FalServerlessHost(Host):
397
397
"max_multiplexing" ,
398
398
"setup_function" ,
399
399
"metadata" ,
400
+ "request_timeout" ,
400
401
"_base_image" ,
401
402
"_scheduler" ,
402
403
"_scheduler_options" ,
@@ -444,6 +445,7 @@ def register(
444
445
scheduler = options .host .get ("_scheduler" , None )
445
446
scheduler_options = options .host .get ("_scheduler_options" , None )
446
447
exposed_port = options .get_exposed_port ()
448
+ request_timeout = options .host .get ("request_timeout" )
447
449
448
450
machine_requirements = MachineRequirements (
449
451
machine_types = machine_type , # type: ignore
@@ -456,6 +458,7 @@ def register(
456
458
max_multiplexing = max_multiplexing ,
457
459
max_concurrency = max_concurrency ,
458
460
min_concurrency = min_concurrency ,
461
+ request_timeout = request_timeout ,
459
462
)
460
463
461
464
partial_func = _prepare_partial_func (func )
@@ -516,6 +519,7 @@ def _run(
516
519
scheduler_options = options .host .get ("_scheduler_options" , None )
517
520
exposed_port = options .get_exposed_port ()
518
521
setup_function = options .host .get ("setup_function" , None )
522
+ request_timeout = options .host .get ("request_timeout" )
519
523
520
524
machine_requirements = MachineRequirements (
521
525
machine_types = machine_type , # type: ignore
@@ -528,6 +532,7 @@ def _run(
528
532
max_multiplexing = max_multiplexing ,
529
533
max_concurrency = max_concurrency ,
530
534
min_concurrency = min_concurrency ,
535
+ request_timeout = request_timeout ,
531
536
)
532
537
533
538
return_value = _UNSET
@@ -693,6 +698,7 @@ def function(
693
698
keep_alive : int = FAL_SERVERLESS_DEFAULT_KEEP_ALIVE ,
694
699
max_multiplexing : int = FAL_SERVERLESS_DEFAULT_MAX_MULTIPLEXING ,
695
700
min_concurrency : int = FAL_SERVERLESS_DEFAULT_MIN_CONCURRENCY ,
701
+ request_timeout : int | None = None ,
696
702
setup_function : Callable [..., None ] | None = None ,
697
703
_base_image : str | None = None ,
698
704
_scheduler : str | None = None ,
@@ -719,6 +725,7 @@ def function(
719
725
keep_alive : int = FAL_SERVERLESS_DEFAULT_KEEP_ALIVE ,
720
726
max_multiplexing : int = FAL_SERVERLESS_DEFAULT_MAX_MULTIPLEXING ,
721
727
min_concurrency : int = FAL_SERVERLESS_DEFAULT_MIN_CONCURRENCY ,
728
+ request_timeout : int | None = None ,
722
729
setup_function : Callable [..., None ] | None = None ,
723
730
_base_image : str | None = None ,
724
731
_scheduler : str | None = None ,
@@ -795,6 +802,7 @@ def function(
795
802
keep_alive : int = FAL_SERVERLESS_DEFAULT_KEEP_ALIVE ,
796
803
max_multiplexing : int = FAL_SERVERLESS_DEFAULT_MAX_MULTIPLEXING ,
797
804
min_concurrency : int = FAL_SERVERLESS_DEFAULT_MIN_CONCURRENCY ,
805
+ request_timeout : int | None = None ,
798
806
setup_function : Callable [..., None ] | None = None ,
799
807
_base_image : str | None = None ,
800
808
_scheduler : str | None = None ,
@@ -826,6 +834,7 @@ def function(
826
834
keep_alive : int = FAL_SERVERLESS_DEFAULT_KEEP_ALIVE ,
827
835
max_multiplexing : int = FAL_SERVERLESS_DEFAULT_MAX_MULTIPLEXING ,
828
836
min_concurrency : int = FAL_SERVERLESS_DEFAULT_MIN_CONCURRENCY ,
837
+ request_timeout : int | None = None ,
829
838
setup_function : Callable [..., None ] | None = None ,
830
839
_base_image : str | None = None ,
831
840
_scheduler : str | None = None ,
@@ -851,6 +860,7 @@ def function(
851
860
keep_alive : int = FAL_SERVERLESS_DEFAULT_KEEP_ALIVE ,
852
861
max_multiplexing : int = FAL_SERVERLESS_DEFAULT_MAX_MULTIPLEXING ,
853
862
min_concurrency : int = FAL_SERVERLESS_DEFAULT_MIN_CONCURRENCY ,
863
+ request_timeout : int | None = None ,
854
864
setup_function : Callable [..., None ] | None = None ,
855
865
_base_image : str | None = None ,
856
866
_scheduler : str | None = None ,
@@ -876,6 +886,7 @@ def function(
876
886
keep_alive : int = FAL_SERVERLESS_DEFAULT_KEEP_ALIVE ,
877
887
max_multiplexing : int = FAL_SERVERLESS_DEFAULT_MAX_MULTIPLEXING ,
878
888
min_concurrency : int = FAL_SERVERLESS_DEFAULT_MIN_CONCURRENCY ,
889
+ request_timeout : int | None = None ,
879
890
setup_function : Callable [..., None ] | None = None ,
880
891
_base_image : str | None = None ,
881
892
_scheduler : str | None = None ,
0 commit comments