

def test_periodic_jobs_sets_ttl(self):
    '\n        Ensure periodic jobs sets correctly ttl.\n        '
    job = self.scheduler.schedule(datetime.utcnow(), say_hello, interval=5, ttl=4)
    job_from_queue = Job.fetch(job.id, connection=self.testconn)
    self.assertEqual(job_from_queue.ttl, 4)

dataset/ETHPy150Open ui/rq-scheduler/tests/test_scheduler.py TestScheduler.test_periodic_jobs_sets_ttl/VarMisuse@58/89 `job`->`job_from_queue`