Fix issue with job cache file retrieval

This commit is contained in:
Théophile Diot 2024-04-03 11:30:58 +01:00
parent 29ab3167e7
commit 6dd8d2c0cd
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -134,7 +134,7 @@ class Job:
with LOCK:
if not ret_data:
return self.db.get_job_cache_file(job_name or self.job_name, name, service_id=service_id, plugin_id=plugin_id or self.job_path.name, with_info=with_info, with_data=with_data) # type: ignore
ret_data.update(self.db.get_job_cache_file(job_name or self.job_name, name, service_id=service_id, plugin_id=plugin_id or self.job_path.name, with_info=True, with_data=False)) # type: ignore
ret_data.update(self.db.get_job_cache_file(job_name or self.job_name, name, service_id=service_id, plugin_id=plugin_id or self.job_path.name, with_info=True, with_data=False) or {}) # type: ignore
return ret_data
def is_cached_file(