Skip to content

Commit b7f3fe3

Browse files
committed
fix: improve celery performance
1 parent e6bbd25 commit b7f3fe3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tutor/plugins/openedx.py

+6
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ def is_directory_mounted(image_name: str, dirname: str) -> bool:
153153
"--hostname=edx.lms.core.default.%h",
154154
"--queues=edx.lms.core.default,edx.lms.core.high,edx.lms.core.high_mem",
155155
"--max-tasks-per-child=100",
156+
"--without-gossip", # Disable worker communication. All messages should be captured from the broker.
157+
"--without-mingle", # Disable worker synchronization.
158+
"--heartbeat-interval=60", # Reduce the heartbeat interval to 1 min.
156159
]
157160
)
158161

@@ -166,6 +169,9 @@ def is_directory_mounted(image_name: str, dirname: str) -> bool:
166169
"--hostname=edx.cms.core.default.%h",
167170
"--queues=edx.cms.core.default,edx.cms.core.high,edx.cms.core.low",
168171
"--max-tasks-per-child=100",
172+
"--without-gossip", # Disable worker communication. All messages should be captured from the broker.
173+
"--without-mingle", # Disable worker synchronization.
174+
"--heartbeat-interval=60", # Reduce the heartbeat interval to 1 min.
169175
]
170176
)
171177

0 commit comments

Comments
 (0)