mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 22:19:28 -02:30
Fix a bug where checking cache timeout blackout could fail on projects
This commit is contained in:
@@ -302,7 +302,7 @@ class Project(UnifiedJobTemplate, ProjectOptions):
|
|||||||
def cache_timeout_blocked(self):
|
def cache_timeout_blocked(self):
|
||||||
if not self.last_job_run:
|
if not self.last_job_run:
|
||||||
return False
|
return False
|
||||||
if (self.last_job_run + datetime.timedelta(seconds=self.update_cache_timeout)) > now():
|
if (self.last_job_run + datetime.timedelta(seconds=self.scm_update_cache_timeout)) > now():
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user