Skip to content

Commit

Permalink
restart workers after executing 10 tasks to mitigate memory leaks (#840)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Adam-D-Lewis and pre-commit-ci[bot] authored Jul 23, 2024
1 parent 0ade4b1 commit 1df30a2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def start(self):
argv = [
"worker",
"--loglevel=INFO",
"--max-tasks-per-child=10", # mitigate memory leaks
]

# The default Celery pool requires this on Windows. See
Expand Down

0 comments on commit 1df30a2

Please sign in to comment.