Skip to content

Commit 3ec2d3e

Browse files
SAASMLOPS-769 make max parallelism configurable
Signed-off-by: James Crabtree <james.crabtree@sailpoint.com>
1 parent 8985d6e commit 3ec2d3e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

sdk/python/feast/infra/materialization/contrib/bytewax/bytewax_materialization_engine.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ class BytewaxMaterializationEngineConfig(FeastConfigBaseModel):
6464
labels: dict = {}
6565
""" (optional) additional labels to append to kubernetes objects """
6666

67+
max_parallelism: int = 10
68+
""" (optional) Maximum number of pods (default 10) allowed to run in parallel per job"""
69+
6770

6871
class BytewaxMaterializationEngine(BatchMaterializationEngine):
6972
def __init__(
@@ -275,7 +278,7 @@ def _create_job_definition(self, job_id, namespace, pods, env):
275278
"spec": {
276279
"ttlSecondsAfterFinished": 3600,
277280
"completions": pods,
278-
"parallelism": pods,
281+
"parallelism": min(pods, self.batch_engine_config.max_parallelism),
279282
"completionMode": "Indexed",
280283
"template": {
281284
"metadata": {

0 commit comments

Comments
 (0)