summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelwin Ong <selwin.ong@gmail.com>2020-03-08 16:27:03 +0700
committerSelwin Ong <selwin.ong@gmail.com>2020-03-08 16:27:03 +0700
commit8a0153efc8e2e152566a9832cdb7760241538a19 (patch)
tree13ae579ceabcf1196f5acbc9aaefd5b15340d2ba
parentd8bd455c12dae6d0d3674cce3cacd495e5d60b5a (diff)
downloadrq-8a0153efc8e2e152566a9832cdb7760241538a19.tar.gz
Properly decode hostname in job.refresh()
-rw-r--r--rq/worker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rq/worker.py b/rq/worker.py
index 271e819..e778333 100644
--- a/rq/worker.py
+++ b/rq/worker.py
@@ -620,7 +620,7 @@ class Worker(object):
(queues, state, job_id, last_heartbeat, birth, failed_job_count,
successful_job_count, total_working_time, hostname, pid, version, python_version) = data
queues = as_text(queues)
- self.hostname = hostname
+ self.hostname = as_text(hostname)
self.pid = int(pid) if pid else None
self.version = as_text(version)
self.python_version = as_text(python_version)