Skip to content

Commit 8610c1f

Browse files
Add filters to reflect temporary filters in monitoring
1 parent d6a281c commit 8610c1f

File tree

1 file changed

+9
-1
lines changed
  • archive_query_log/monitoring

1 file changed

+9
-1
lines changed

archive_query_log/monitoring/home.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,10 @@ def home(config: Config) -> str | Response:
454454
"prefixes in the sources.",
455455
document=Source,
456456
index=config.es.index_sources,
457+
filter_query=(
458+
# FIXME: The UK Web Archive is facing an outage: https://www.webarchive.org.uk/#en
459+
~Term(archive__id="90be629c-2a95-52da-9ae8-ca58454c9826")
460+
),
457461
status_field="should_fetch_captures",
458462
),
459463
_get_processed_progress(
@@ -490,7 +494,11 @@ def home(config: Config) -> str | Response:
490494
description="Download WARCs.",
491495
document=Serp,
492496
index=config.es.index_serps,
493-
filter_query=Term(capture__status_code=200),
497+
filter_query=(
498+
Term(capture__status_code=200)
499+
# FIXME: Remove this manual prioritization at some time.
500+
& Term(provider__id="f205fc44-d918-4b79-9a7f-c1373a6ff9f2")
501+
),
494502
status_field="warc_downloader.should_download",
495503
),
496504
_get_processed_progress(

0 commit comments

Comments
 (0)