Remove strict procname dependency.

This fixes #80.
main
Vincent Driessen 13 years ago
parent b8430ffc0f
commit 074d42fe54

@ -2,7 +2,11 @@ import os
import errno import errno
import random import random
import time import time
import procname try:
from procname import setprocname
except ImportError:
def setprocname(*args, **kwargs): # noqa
pass
import socket import socket
import signal import signal
import traceback import traceback
@ -160,7 +164,7 @@ class Worker(object):
This can be used to make `ps -ef` output more readable. This can be used to make `ps -ef` output more readable.
""" """
procname.setprocname('rq: %s' % (message,)) setprocname('rq: %s' % (message,))
def register_birth(self): # noqa def register_birth(self): # noqa

@ -17,7 +17,7 @@ def get_version():
def get_dependencies(): def get_dependencies():
deps = ['redis', 'procname', 'times'] deps = ['redis', 'times']
deps += ['logbook'] # should be soft dependency? deps += ['logbook'] # should be soft dependency?
if sys.version_info < (2, 7) or \ if sys.version_info < (2, 7) or \
(sys.version_info >= (3, 0) and sys.version_info < (3, 1)): (sys.version_info >= (3, 0) and sys.version_info < (3, 1)):

Loading…
Cancel
Save