Spaces:
Sleeping
Sleeping
Commit
·
bea8a00
1
Parent(s):
733f7a8
add loggs
Browse files- LoadBalancer.py +1 -0
LoadBalancer.py
CHANGED
|
@@ -85,6 +85,7 @@ class LoadBalancer:
|
|
| 85 |
json_cache_path = os.path.join(self.CACHE_DIR, f"{urllib.parse.quote(original_title)}.json")
|
| 86 |
if not os.path.exists(json_cache_path):
|
| 87 |
tasks.append(fetch_and_cache_json(original_title, title, media_type, year))
|
|
|
|
| 88 |
|
| 89 |
# Run all tasks concurrently
|
| 90 |
await asyncio.gather(*tasks)
|
|
|
|
| 85 |
json_cache_path = os.path.join(self.CACHE_DIR, f"{urllib.parse.quote(original_title)}.json")
|
| 86 |
if not os.path.exists(json_cache_path):
|
| 87 |
tasks.append(fetch_and_cache_json(original_title, title, media_type, year))
|
| 88 |
+
logging.info("Skipping.. metadata already cached")
|
| 89 |
|
| 90 |
# Run all tasks concurrently
|
| 91 |
await asyncio.gather(*tasks)
|