We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89e1e88 commit 6e5538dCopy full SHA for 6e5538d
scripts/cleanup_vespa_db.py
@@ -37,13 +37,12 @@ def cleanup_stale_cache():
37
38
def vespa_callback(response: "VespaResponse", id: str):
39
nonlocal total_deleted
40
- if response.is_successful:
+ if response.is_successful():
41
total_deleted += 1
42
else:
43
print(
44
- f"Failed to delete document {id} from Vespa: {response.status_code} - {response.get_json()}"
+ f"Failed to delete document {id} from Vespa: {getattr(response,'status_code', 'NA')} - {response.get_json()}"
45
)
46
-
47
vespa.feed_iterable(
48
docs_to_delete,
49
schema=settings.VESPA_SCHEMA,
0 commit comments