pipeline/ocr/sfn_semaphore/__init__.py [298:306]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        ddb_lock_table: dynamodb.Table,
        lock_id_attr: str,
        lock_name: str,
        concurrency_limit: int,
        per_item_concurrency: int = 1,
        warmup_tps_limit: Optional[float] = None,
        **kwargs,
    ):
        super().__init__(scope, id, **kwargs)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pipeline/ocr/sfn_semaphore/__init__.py [573:606]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        ddb_lock_table: dynamodb.Table,
        lock_id_attr: str,
        lock_name: str,
        concurrency_limit: int,
        per_item_concurrency: int = 1,
        warmup_tps_limit: Optional[float] = None,
        **kwargs,
    ):
        """Create a SFnSemaphore

        Arguments
        ---------
        scope : cdk.Construct
            CDK construct scope
        id : str
            CDK construct ID
        workchain : sfn.IChainable
            The `Chain` of Step Functions states to wrap in the concurrency-limiting semaphore
        ddb_lock_table : dynamodb.Table
            The DynamoDB table in which concurrency locks will be tracked for this semaphore
        lock_id_attr : str
            The attribute name where lock IDs are stored in the given `ddb_lock_table`
        lock_name : str
            The name for this semaphore lock, unique within the scope of `ddb_lock_table`
        concurrency_limit : int
            The maximum concurrency to enforce for this work chain
        per_item_concurrency : int
            The per-execution concurrency for this workchain: Default 1
        warmup_tps_limit : Optional[float]
            Optional limit for time between lock grants, in grants per second.
        **kwargs :
            Passed through to parent cdk.Construct class
        """
        super().__init__(scope, id, **kwargs)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



