Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Place limits on the repeated use of individual worker processes #229

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

candleindark
Copy link
Collaborator

Place limits on the repeated use of individual worker processes. If a worker process has been used more than 1000 times or has used more than 500MB resident memory, it will be replaced by a new worker process. These configurations are put in place to control affect of possible memory leaks.

For more information, please check out the following documentations.

  1. https://docs.celeryq.dev/en/stable/userguide/workers.html#max-tasks-per-child-setting
  2. https://docs.celeryq.dev/en/stable/userguide/configuration.html#std-setting-worker_max_tasks_per_child

@codecov
Copy link

codecov bot commented Aug 25, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (81a9f36) 98.31% compared to head (e695061) 98.31%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #229   +/-   ##
=======================================
  Coverage   98.31%   98.31%           
=======================================
  Files          40       40           
  Lines        1542     1542           
=======================================
  Hits         1516     1516           
  Misses         26       26           
Files Changed Coverage Δ
datalad_registry/conf.py 97.95% <ø> (ø)
datalad_registry/tests/test__init__.py 100.00% <ø> (ø)
datalad_registry/tests/test_conf.py 100.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@candleindark candleindark merged commit 560da3e into datalad:master Aug 25, 2023
6 checks passed
@candleindark candleindark deleted the worker-max branch August 25, 2023 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant