Closed michel-cf closed 7 years ago
If I understand correctly, you are asking about getting measurements from a different process (the celery worker). I don't think I have anything like this implemented. I'm pretty sure that's an overkill for something as simple as Pyformance, and also might cause measurements to be expensive and cause delays in the software running.
For a project of mine, I want to measure inside Celery tasks. But it seems that measured data from the Celery workers does not get reported. (It actually does get printed if I trigger that from within the worker)
A minimal example: celerypyformance.py
test.py
It keeps printing only the start action, never the counter from within the task:
To run: Install Celery using pip, install redis. Start the redis server. Run
celery -A celerypyformance worker
and leave this running while executing the next command. Executepython test.py
to execute the celery task.Is there something I've forgotten or is there a small fix that can resolve this issue? Thanks in advance