@@ -48,8 +48,14 @@ class StackQL:
4848 (defaults to `{cwd}/.stackql`)
4949 :type app_root: str, optional
5050 :param execution_concurrency_limit: Concurrency limit for query execution
51- (defaults to `1`, set to `-1` for unlimited)
52- :type execution_concurrency_limit: int, optional
51+ (defaults to `-1` - unlimited)
52+ :type execution_concurrency_limit: int, optional
53+ :param dataflow_dependency_max: Max dataflow weakly connected components for a given query
54+ (defaults to `50`)
55+ :type dataflow_dependency_max: int, optional
56+ :param dataflow_components_max: Max dataflow dependency depth for a given query
57+ (defaults to `50`)
58+ :type dataflow_components_max: int, optional
5359 :param api_timeout: API timeout
5460 (defaults to `45`, not supported in `server_mode`)
5561 :type api_timeout: int, optional
@@ -238,7 +244,9 @@ def __init__(self,
238244 backend_file_storage_location = 'stackql.db' ,
239245 download_dir = None ,
240246 app_root = None ,
241- execution_concurrency_limit = 1 ,
247+ execution_concurrency_limit = - 1 ,
248+ dataflow_dependency_max = 50 ,
249+ dataflow_components_max = 50 ,
242250 output = 'dict' ,
243251 custom_registry = None ,
244252 custom_auth = None ,
@@ -350,6 +358,15 @@ def __init__(self,
350358 self .params .append ("--execution.concurrency.limit" )
351359 self .params .append (str (execution_concurrency_limit ))
352360
361+ # set dataflow_dependency_max and dataflow_components_max
362+ self .dataflow_dependency_max = dataflow_dependency_max
363+ self .params .append ("--dataflow.dependency.max" )
364+ self .params .append (str (dataflow_dependency_max ))
365+
366+ self .dataflow_components_max = dataflow_components_max
367+ self .params .append ("--dataflow.components.max" )
368+ self .params .append (str (dataflow_components_max ))
369+
353370 # if custom_auth is set, use it
354371 if custom_auth is not None :
355372 authobj , authstr = _format_auth (custom_auth )
0 commit comments