Permalink
Browse files

Remove strict procname dependency.

This fixes #80.
  • Loading branch information...
1 parent b8430ff commit 074d42fe542ab6dd4dde2ebfe4cb2669e91323ad @nvie committed Jun 3, 2012
Showing with 7 additions and 3 deletions.
  1. +6 −2 rq/worker.py
  2. +1 −1 setup.py
View
@@ -2,7 +2,11 @@
import errno
import random
import time
-import procname
+try:
+ from procname import setprocname
+except ImportError:
+ def setprocname(*args, **kwargs): # noqa
+ pass
import socket
import signal
import traceback
@@ -160,7 +164,7 @@ def procline(self, message):
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
View
@@ -17,7 +17,7 @@ def get_version():
def get_dependencies():
- deps = ['redis', 'procname', 'times']
+ deps = ['redis', 'times']
deps += ['logbook'] # should be soft dependency?
if sys.version_info < (2, 7) or \
(sys.version_info >= (3, 0) and sys.version_info < (3, 1)):

0 comments on commit 074d42f

Please sign in to comment.