From 4b797fbf43e3e81f777fdb4ccfd69712059c9598 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Mon, 27 Aug 2012 09:58:59 +0200 Subject: [PATCH] Don't use strings, but comments. --- rq/worker.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rq/worker.py b/rq/worker.py index 3ba1d6c..7002e93 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -400,13 +400,13 @@ class Worker(object): else: self.log.info('Job OK, result = %s' % (yellow(unicode(rv)),)) - """ - How long we persist the job result depends on the value of result_ttl: - - If result_ttl is 0, cleanup the job immediately. - - If it's a positive number, set the job to expire in X seconds. - - If result_ttl is negative, don't set an expiry to it (persist forever) - """ - result_ttl = self.default_result_ttl if job.result_ttl is None else job.result_ttl + # How long we persist the job result depends on the value of + # result_ttl: + # - If result_ttl is 0, cleanup the job immediately. + # - If it's a positive number, set the job to expire in X seconds. + # - If result_ttl is negative, don't set an expiry to it (persist + # forever) + result_ttl = self.default_result_ttl if job.result_ttl is None else job.result_ttl # noqa if result_ttl == 0: job.delete() else: