Skip to content

Commit 2df4c9a

Browse files
committed
fix: make workflow worker batch size configurable
1 parent a205861 commit 2df4c9a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

wavefront/server/background_jobs/workflow_job/workflow_job/config.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
thread_count = ${THREAD_COUNT:3}
33
app_env = ${APP_ENV:dev}
44
passthrough_secret = ${PASSTHROUGH_SECRET}
5+
batch_size = ${BATCH_SIZE:5}
56

67
[agents]
78
agent_yaml_bucket = ${AGENT_YAML_BUCKET}

wavefront/server/background_jobs/workflow_job/workflow_job/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def main():
103103
),
104104
cache_manager=cache_manager,
105105
retry_count=3,
106-
streaming_batch_size=5,
106+
streaming_batch_size=int(config['app_config']['batch_size']),
107107
)
108108

109109
listener.run_workers(thread_count=int(config['app_config']['thread_count']))

0 commit comments

Comments
 (0)