Skip to content

Commit 6d676e5

Browse files
authored
Added parameter to the startup script and bumped chart version by a point (#7)
1 parent 03615c7 commit 6d676e5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

charts/swirl/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: swirl
33
description: A Helm chart for deploying Swirl AI-powered search platform on Azure Kubernetes Service (AKS)
44
type: application
5-
version: 0.2.0
5+
version: 0.2.1
66
appVersion: "stable"
77
keywords:
88
- swirl

charts/swirl/files/scripts/swirl-celery-worker-startup.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ get_max_memory_per_child_config() {
3131
fi
3232
}
3333

34+
get_max_tasks_per_child_config() {
35+
if [ ! -z "$SWIRL_CELERY_MAX_TASKS_PER_CHILD" ]; then
36+
echo "--max-tasks-per-child=$SWIRL_CELERY_TASKS_PER_CHILD"
37+
else
38+
echo ""
39+
fi
40+
}
41+
42+
3443
get_default_workers_concurrency_config() {
3544
if [ ! -z "$CELERY_DEFAULT_WORKERS_PROCESSES_CONCURRENCY" ] && [ "$CELERY_DEFAULT_WORKERS_PROCESSES_CONCURRENCY" -ge 1 ]; then
3645
echo "--concurrency=$CELERY_DEFAULT_WORKERS_PROCESSES_CONCURRENCY"
@@ -44,4 +53,4 @@ celery -A swirl_server worker \
4453
--loglevel=$LOGLEVEL \
4554
--without-heartbeat \
4655
--without-gossip \
47-
--without-mingle $(get_autoscale_config) $(get_max_memory_per_child_config) $(get_default_workers_concurrency_config) $ENABLE_EVENTS
56+
--without-mingle $(get_autoscale_config) $(get_max_tasks_per_child_config) $(get_max_memory_per_child_config) $(get_default_workers_concurrency_config) $ENABLE_EVENTS

0 commit comments

Comments
 (0)