You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The values of memsample in the Celery worker stats don’t change when I run a Celery task that consumes memory. According to the documentation, memsample should return the current memory usage value of the worker.
In my case, I have a single worker. The task goes into the worker, and the task is successful, but the memsample values don’t change when the task is in progress; they remain the same every time.
Command i used to fetch the celery memsample
celery -A <project-name> inspect memsample -d <worker-id>
Code:
import time
from celery import group, shared_task
@shared_task
def large_list():
"""Return a list of 10^5 elements, each element is an integer from 0 to 10^5-1"""
large_list1 = [i for i in range(10**6)]
time.sleep(2)
large_list1 = [i for i in range(10**6)]
time.sleep(2)
large_list2 = [i for i in range(10**6)]
time.sleep(2)
large_list3 = [i for i in range(10**6)]
time.sleep(2)
large_list4 = [i for i in range(10**6)]
time.sleep(2)
return large_list1, large_list2, large_list3, large_list4
def caller():
print("BEGIN: inside the caller fucntion")
group_task = []
for i in range(10):
group_task.append(large_list.si().set(queue="eq.BASIC.MISC.1")) #Custom queue configuration
group(group_task).apply_async()
print("END: inside the caller fucntion")
Checklist
I have verified that the issue exists against the main branch of Celery.
The values of memsample in the Celery worker stats don’t change when I run a Celery task that consumes memory. According to the documentation, memsample should return the current memory usage value of the worker.
In my case, I have a single worker. The task goes into the worker, and the task is successful, but the memsample values don’t change when the task is in progress; they remain the same every time.
Command i used to fetch the celery memsample
celery -A <project-name> inspect memsample -d <worker-id>
Code:
Checklist
main
branch of Celery.contribution guide
on reporting bugs.
for similar or identical bug reports.
for existing proposed fixes.
to find out if the bug was already fixed in the main branch.
in this issue (If there are none, check this box anyway).
Mandatory Debugging Information
celery -A proj report
in the issue.(if you are not able to do this, then at least specify the Celery
version affected).
main
branch of Celery.pip freeze
in the issue.to reproduce this bug.
Optional Debugging Information
and/or implementation.
result backend.
broker and/or result backend.
ETA/Countdown & rate limits disabled.
and/or upgrading Celery and its dependencies.
Related Issues and Possible Duplicates
Related Issues
Possible Duplicates
Environment & Settings
Celery version:
celery report
Output:Steps to Reproduce
Required Dependencies
Python Packages
pip freeze
Output:Other Dependencies
N/A
Minimally Reproducible Test Case
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: