Install dev version of manhole:
pip install https://github.com/ionelmc/python-manhole/archive/master.zip
Poke with USR2, and run (use correct pid):
socat readline unix-connect:/tmp/manhole-12345
| import errno | |
| import logging | |
| import os | |
| import signal | |
| import sys | |
| import threading | |
| import time | |
| from itertools import count | |
| from logging import getLogger |
| from logging import getLogger | |
| logger = getLogger(__name__) | |
| import gc | |
| import os | |
| os.environ['MP_LOG'] = '1' | |
| import time | |
| import sys | |
| from tqdm import tqdm | |
| from celery import Celery |
Install dev version of manhole:
pip install https://github.com/ionelmc/python-manhole/archive/master.zip
Poke with USR2, and run (use correct pid):
socat readline unix-connect:/tmp/manhole-12345
| --- a/supervisor/options.py | |
| +++ b/supervisor/options.py | |
| @@ -539,11 +539,11 @@ | |
| base = os.path.dirname(os.path.abspath(fp.name)) | |
| else: | |
| base = '.' | |
| for pattern in files: | |
| pattern = os.path.join(base, pattern) | |
| - for filename in glob.glob(pattern): | |
| + for filename in sorted(glob.glob(pattern)): |
| [2014-01-31 13:50:36,821: DEBUG/MainProcess] [1;34m| Worker: Preparing bootsteps.[0m | |
| [2014-01-31 13:50:36,822: DEBUG/MainProcess] [1;34m| Worker: Building graph...[0m | |
| [2014-01-31 13:50:36,822: DEBUG/MainProcess] [1;34m| Worker: New boot order: {Timer, Hub, Queues (intra), Pool, Autoscaler, Autoreloader, Beat, StateDB, Consumer}[0m | |
| [2014-01-31 13:50:36,826: DEBUG/MainProcess] [1;34m| Consumer: Preparing bootsteps.[0m | |
| [2014-01-31 13:50:36,826: DEBUG/MainProcess] [1;34m| Consumer: Building graph...[0m | |
| [2014-01-31 13:50:36,827: DEBUG/MainProcess] [1;34m| Consumer: New boot order: {Connection, Events, Heart, Mingle, Tasks, Control, Agent, Gossip, event loop}[0m | |
| [2014-01-31 13:50:36,828: CRITICAL/MainProcess] [1;35mGetting it on ![0m | |
| [1;36m | |
| -------------- celery@dkbox v3.1.8 (Cipater) | |
| ---- **** ----- |
| [2014-01-30 16:19:03,357: INFO/MainProcess] Task __main__.ok[60ce5180-4acd-404c-905d-1c441212a6e3] succeeded in 0.00657280000087s: 'ok' | |
| [DEBUG/MainProcess] Supervisor: cleaning up worker 90 | |
| [DEBUG/MainProcess] Supervisor: worked 90 joined | |
| [DEBUG/MainProcess] Supervisor: cleaning up worker 39 | |
| [DEBUG/MainProcess] Supervisor: worked 39 joined | |
| [DEBUG/MainProcess] added worker | |
| [INFO/Worker-177466] child process 22679 calling self.run() | |
| [DEBUG/MainProcess] added worker | |
| [2014-01-30 16:19:03,410: ERROR/MainProcess] KeyError(188,) while getting callback in Hub. event=4. fileno=188 | |
| [2014-01-30 16:19:03,410: ERROR/MainProcess] KeyError(396,) while getting callback in Hub. event=4. fileno=396 |
| from celery import Celery | |
| from celery import bootsteps | |
| from celery.worker import consumer | |
| class MaxIdleTimeStep(bootsteps.StartStopStep): | |
| idle_max = 1.0 | |
| last_active = None | |
| requires = (consumer.Tasks, ) |
| from pelican import readers | |
| from pelican.readers import PelicanHTMLTranslator | |
| from pelican import signals | |
| from docutils import nodes | |
| def register(): | |
| class HeaderIDPatchedPelicanHTMLTranslator(PelicanHTMLTranslator): | |
| def depart_title(self, node): | |
| close_tag = self.context[-1] | |
| parent = node.parent |
| Microsoft Windows [Version 6.2.9200] | |
| (c) 2012 Microsoft Corporation. All rights reserved. | |
| C:\Users\ionel_000\Documents\GitHub>pip wheel | |
| Usage: pip COMMAND [OPTIONS] | |
| No command by the name pip-script.py wheel | |
| (maybe you meant "pip-script.py help") | |
| C:\Users\ionel_000\Documents\GitHub>pip --version | |
| pip 1.2.1 from d:\python27\lib\site-packages\pip-1.2.1-py2.7.egg (python 2.7) |
| [program:node-name] | |
| environment=DJANGO_SETTINGS_MODULE="project.settings",MPLCONFIGDIR="/var/project" | |
| command=/virtualenv/bin/celery worker | |
| --hostname=node-name@%%h | |
| --concurrency=5 | |
| --events | |
| --loglevel=INFO | |
| --app=project.celeryapp | |
| -Ofair | |
| directory=/var/project |