@@ -390,7 +390,7 @@ class RPClient(RP):
390390 __launch_uuid : str
391391 use_own_launch : bool
392392 log_batch_size : int
393- log_batch_payload_size : int
393+ log_batch_payload_limit : int
394394 __project : str
395395 api_key : Optional [str ]
396396 oauth_uri : Optional [str ]
@@ -470,7 +470,7 @@ def __init__(
470470 max_pool_size : int = 50 ,
471471 launch_uuid : str = None ,
472472 http_timeout : Union [float , Tuple [float , float ]] = (10 , 10 ),
473- log_batch_payload_size : int = MAX_LOG_BATCH_PAYLOAD_SIZE ,
473+ log_batch_payload_limit : int = MAX_LOG_BATCH_PAYLOAD_SIZE ,
474474 mode : str = "DEFAULT" ,
475475 launch_uuid_print : bool = False ,
476476 print_output : OutputType = OutputType .STDOUT ,
@@ -487,31 +487,31 @@ def __init__(
487487 ) -> None :
488488 """Initialize the class instance with arguments.
489489
490- :param endpoint: Endpoint of the ReportPortal service.
491- :param project: Project name to report to.
492- :param api_key: Authorization API key.
493- :param oauth_uri: OAuth 2.0 token endpoint URI (for OAuth authentication).
494- :param oauth_username: Username for OAuth 2.0 authentication.
495- :param oauth_password: Password for OAuth 2.0 authentication.
496- :param oauth_client_id: OAuth 2.0 client ID.
497- :param oauth_client_secret: OAuth 2.0 client secret (optional).
498- :param oauth_scope: OAuth 2.0 scope (optional).
499- :param log_batch_size: Option to set the maximum number of logs that can be processed in one
500- batch.
501- :param is_skipped_an_issue: Option to mark skipped tests as not 'To Investigate' items on the
502- server side.
503- :param verify_ssl: Option to skip ssl verification.
504- :param retries: Number of retry attempts to make in case of connection / server errors.
505- :param max_pool_size: Option to set the maximum number of connections to save the pool.
506- :param launch_uuid: A launch UUID to use instead of starting own one.
507- :param http_timeout: A float in seconds for connect and read timeout. Use a Tuple to
508- specific connect and read separately.
509- :param log_batch_payload_size : Maximum size in bytes of logs that can be processed in one batch.
510- :param mode: Launch mode, all Launches started by the client will be in that mode.
511- :param launch_uuid_print: Print Launch UUID into passed TextIO or by default to stdout.
512- :param print_output: Set output stream for Launch UUID printing.
513- :param log_batcher: Use existing LogBatcher instance instead of creation of own one.
514- :param truncate_attributes: Truncate test item attributes to default maximum length.
490+ :param endpoint: Endpoint of the ReportPortal service.
491+ :param project: Project name to report to.
492+ :param api_key: Authorization API key.
493+ :param oauth_uri: OAuth 2.0 token endpoint URI (for OAuth authentication).
494+ :param oauth_username: Username for OAuth 2.0 authentication.
495+ :param oauth_password: Password for OAuth 2.0 authentication.
496+ :param oauth_client_id: OAuth 2.0 client ID.
497+ :param oauth_client_secret: OAuth 2.0 client secret (optional).
498+ :param oauth_scope: OAuth 2.0 scope (optional).
499+ :param log_batch_size: Option to set the maximum number of logs that can be processed in one
500+ batch.
501+ :param is_skipped_an_issue: Option to mark skipped tests as not 'To Investigate' items on the
502+ server side.
503+ :param verify_ssl: Option to skip ssl verification.
504+ :param retries: Number of retry attempts to make in case of connection / server errors.
505+ :param max_pool_size: Option to set the maximum number of connections to save the pool.
506+ :param launch_uuid: A launch UUID to use instead of starting own one.
507+ :param http_timeout: A float in seconds for connect and read timeout. Use a Tuple to
508+ specific connect and read separately.
509+ :param log_batch_payload_limit : Maximum size in bytes of logs that can be processed in one batch.
510+ :param mode: Launch mode, all Launches started by the client will be in that mode.
511+ :param launch_uuid_print: Print Launch UUID into passed TextIO or by default to stdout.
512+ :param print_output: Set output stream for Launch UUID printing.
513+ :param log_batcher: Use existing LogBatcher instance instead of creation of own one.
514+ :param truncate_attributes: Truncate test item attributes to default maximum length.
515515 """
516516 set_current (self )
517517 self .api_v1 , self .api_v2 = "v1" , "v2"
@@ -533,8 +533,8 @@ def __init__(
533533 self .__launch_uuid = launch_id
534534 self .use_own_launch = not bool (self .__launch_uuid )
535535 self .log_batch_size = log_batch_size
536- self .log_batch_payload_size = log_batch_payload_size
537- self ._log_batcher = log_batcher or LogBatcher (self .log_batch_size , self .log_batch_payload_size )
536+ self .log_batch_payload_limit = log_batch_payload_limit
537+ self ._log_batcher = log_batcher or LogBatcher (self .log_batch_size , self .log_batch_payload_limit )
538538 self .verify_ssl = verify_ssl
539539 self .retries = retries
540540 self .max_pool_size = max_pool_size
@@ -1016,7 +1016,7 @@ def clone(self) -> "RPClient":
10161016 max_pool_size = self .max_pool_size ,
10171017 launch_uuid = self .__launch_uuid ,
10181018 http_timeout = self .http_timeout ,
1019- log_batch_payload_size = self .log_batch_payload_size ,
1019+ log_batch_payload_limit = self .log_batch_payload_limit ,
10201020 mode = self .mode ,
10211021 log_batcher = self ._log_batcher ,
10221022 oauth_uri = self .oauth_uri ,
0 commit comments