mirror of https://github.com/rq/rq.git
hard-coded TTL to -1 on job.perform()
Removed merge artifacts
This commit is contained in:
parent
3d4d6a86d5
commit
071c47dacb
|
@ -486,7 +486,7 @@ class Job(object):
|
|||
def perform(self): # noqa
|
||||
"""Invokes the job function with the job arguments."""
|
||||
self.connection.persist(self.key)
|
||||
self.ttl = self.connection.ttl(self.key)
|
||||
self.ttl = -1
|
||||
_job_stack.push(self.id)
|
||||
try:
|
||||
self._result = self.func(*self.args, **self.kwargs)
|
||||
|
|
|
@ -4,11 +4,6 @@ from __future__ import (absolute_import, division, print_function,
|
|||
|
||||
from datetime import datetime
|
||||
|
||||
from tests import RQTestCase
|
||||
from tests.fixtures import (access_self, CallableObject, Number, say_hello,
|
||||
some_calculation)
|
||||
from tests.helpers import strip_microseconds
|
||||
|
||||
from rq.compat import as_text, PY2
|
||||
from rq.exceptions import NoSuchJobError, UnpickleError
|
||||
from rq.job import get_current_job, Job
|
||||
|
|
Loading…
Reference in New Issue