Skip to content

Commit

Permalink
celery inspect stats contains worker pid
Browse files Browse the repository at this point in the history
  • Loading branch information
mher committed Jan 21, 2013
1 parent 8f3ddf0 commit d19dc58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion celery/worker/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"""
from __future__ import absolute_import

import os

from datetime import datetime
from future_builtins import map

from kombu.utils.encoding import safe_repr

Expand Down Expand Up @@ -193,7 +196,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 d19dc58

Please sign in to comment.