mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
Fix a bug where checking cache timeout blackout could fail on projects
This commit is contained in:
parent
bb5dc1b9f9
commit
ca5689c8ad
@ -302,7 +302,7 @@ class Project(UnifiedJobTemplate, ProjectOptions):
|
||||
def cache_timeout_blocked(self):
|
||||
if not self.last_job_run:
|
||||
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 False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user