Skip to content

Commit

Permalink
make max_workers a definable parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rokatyy committed Jan 3, 2024
1 parent 6a4c7a7 commit fee4259
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nuclio/triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def __init__(
partitions=None,
consumer_group="kafka",
initial_offset="earliest",
max_workers: int = 1,
explicit_ack_mode=None,
extra_attributes=None,
session_timeout: str = "10s",
Expand All @@ -183,7 +184,7 @@ def __init__(
super(KafkaTrigger, self).__init__(
{
"kind": self.kind,
"maxWorkers": 1,
"maxWorkers": max_workers,
"attributes": {
"topics": topics,
"brokers": brokers,
Expand Down

0 comments on commit fee4259

Please sign in to comment.