Skip to content

Commit

Permalink
Adds worker pid to inspect stats
Browse files Browse the repository at this point in the history
  • Loading branch information
mher committed Jul 30, 2012
1 parent fc3804c commit b48e3fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ If you're looking for versions prior to 3.x you should see :ref:`history`.
:state: DEVEL
:branch: master

- `celery inspect stats` now contains worker pid
- `Task.apply_async` now supports timeout and soft_timeout arguments (Issue #802)
- `App.control.Inspect.conf` can be used for inspecting worker configuration

Expand Down
5 changes: 4 additions & 1 deletion celery/worker/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"""
from __future__ import absolute_import

import os

from future_builtins import map

from kombu.utils.encoding import safe_repr
Expand Down Expand Up @@ -184,7 +186,8 @@ def stats(panel, **kwargs):
return {'total': state.total_count,
'consumer': panel.consumer.info,
'pool': panel.consumer.pool.info,
'autoscaler': asinfo}
'autoscaler': asinfo,
'pid': os.getpid()}


@Panel.register
Expand Down

0 comments on commit b48e3fe

Please sign in to comment.