Merge pull request #844 from liangsijian/patch-1

Optimize job.dependency
main
Selwin Ong 8 years ago committed by GitHub
commit 89521f8dae

@ -191,7 +191,6 @@ class Job(object):
if hasattr(self, '_dependency'): if hasattr(self, '_dependency'):
return self._dependency return self._dependency
job = self.fetch(self._dependency_id, connection=self.connection) job = self.fetch(self._dependency_id, connection=self.connection)
job.refresh()
self._dependency = job self._dependency = job
return job return job

Loading…
Cancel
Save