make sure state text_type

main
SkyLothar 9 years ago
parent 45addbcaf2
commit f9978bc27c

@ -114,7 +114,7 @@ class Worker(object):
name = worker_key[len(prefix):]
worker = cls([], name, connection=connection)
queues = as_text(connection.hget(worker.key, 'queues'))
worker._state = connection.hget(worker.key, 'state') or '?'
worker._state = as_text(connection.hget(worker.key, 'state') or '?')
worker._job_id = connection.hget(worker.key, 'current_job') or None
if queues:
worker.queues = [cls.queue_class(queue, connection=connection)

Loading…
Cancel
Save