@@ -376,6 +376,7 @@ def import_rows(
376376 insert_option : str = None ,
377377 audit_behavior : str = None ,
378378 import_lookup_by_alternate_key : bool = False ,
379+ timeout : int = _default_timeout
379380):
380381 """
381382 Import row(s) into a table
@@ -396,6 +397,7 @@ def import_rows(
396397 the setting as specified by the LabKey query.
397398 :param import_lookup_by_alternate_key: Allows lookup target rows to be resolved by values rather than the target's
398399 primary key. This option will only be available for lookups that are configured with unique column information
400+ :param timeout: Request timeout in seconds (defaults to 300s)
399401 :return:
400402 """
401403 url = server_context .build_url ("query" , "import.api" , container_path = container_path )
@@ -414,7 +416,7 @@ def import_rows(
414416 if import_lookup_by_alternate_key is not None :
415417 payload ["importLookupByAlternateKey" ] = import_lookup_by_alternate_key
416418
417- return server_context .make_request (url , payload , method = "POST" , file_payload = file_payload )
419+ return server_context .make_request (url , payload , method = "POST" , file_payload = file_payload , timeout = timeout )
418420
419421
420422class Command (TypedDict ):
0 commit comments