Skip to content

Commit f681759

Browse files
infra: fix task definition args (#5322)
1 parent 81b285d commit f681759

2 files changed

Lines changed: 18 additions & 16 deletions

File tree

infrastructure/aws/production/ecs-task-definition-task-processor.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@
66
"containerDefinitions": [
77
{
88
"name": "flagsmith-task-processor",
9-
"entryPoint": [
10-
"python",
11-
"manage.py",
12-
"runprocessor",
13-
"--sleepintervalms",
14-
"1000",
15-
"--numthreads",
16-
"12"
17-
],
9+
"command": ["run-task-processor"],
1810
"essential": true,
1911
"environment": [
2012
{
@@ -172,6 +164,14 @@
172164
{
173165
"name": "ORG_SUBSCRIPTION_CANCELLED_ALERT_RECIPIENT_LIST",
174166
"value": "customersuccess@flagsmith.com"
167+
},
168+
{
169+
"name": "TASK_PROCESSOR_SLEEP_INTERVAL_MS",
170+
"value": "1000"
171+
},
172+
{
173+
"name": "TASK_PROCESSOR_NUM_THREADS",
174+
"value": "12"
175175
}
176176
],
177177
"secrets": [

infrastructure/aws/staging/ecs-task-definition-task-processor.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@
66
"containerDefinitions": [
77
{
88
"name": "flagsmith-task-processor",
9-
"entryPoint": [
10-
"python",
11-
"manage.py",
12-
"runprocessor",
13-
"--sleepintervalms",
14-
"700"
15-
],
9+
"command": ["run-task-processor"],
1610
"essential": true,
1711
"environment": [
1812
{
@@ -158,6 +152,14 @@
158152
{
159153
"name": "PROMETHEUS_ENABLED",
160154
"value": "True"
155+
},
156+
{
157+
"name": "TASK_PROCESSOR_SLEEP_INTERVAL_MS",
158+
"value": "1000"
159+
},
160+
{
161+
"name": "TASK_PROCESSOR_NUM_THREADS",
162+
"value": "12"
161163
}
162164
],
163165
"secrets": [

0 commit comments

Comments
 (0)