diff options
-rw-r--r-- | zuul/configloader.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zuul/configloader.py b/zuul/configloader.py index f01be597b..f9e52595e 100644 --- a/zuul/configloader.py +++ b/zuul/configloader.py @@ -2259,6 +2259,12 @@ class TenantParser(object): job.source_context.branch) with self.unparsed_config_cache.writeLock( job.source_context.project_canonical_name): + # Prevent files cache ltime from going backward + if files_cache.ltime >= job.ltime: + self.log.info( + "Discarding job %s result since the files cache was " + "updated in the meantime", job) + continue # Since the cat job returns all required config files # for ALL tenants the project is a part of, we can # clear the whole cache and then populate it with the |