Skip to content

Commit

Permalink
fix(corpus_importer): Changed setting to disable probe_iquery_pages_d…
Browse files Browse the repository at this point in the history
…aemon
  • Loading branch information
albertisfu committed Nov 30, 2024
1 parent 61e5660 commit 948b7d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def handle(self, *args, **options):
iterations_completed = 0
r = get_redis_interface("CACHE")
testing = True if testing_iterations else False
while True and settings.IQUERY_PROBE_DAEMON_ENABLED:
while True and settings.IQUERY_CASE_PROBE_DAEMON_ENABLED:
for court_id in court_ids:
if r.exists(f"iquery:court_wait:{court_id}"):
continue
Expand Down
2 changes: 1 addition & 1 deletion cl/corpus_importer/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3346,7 +3346,7 @@ def test_merger(self):

@patch("cl.corpus_importer.tasks.get_or_cache_pacer_cookies")
@override_settings(
IQUERY_PROBE_DAEMON_ENABLED=True,
IQUERY_CASE_PROBE_DAEMON_ENABLED=True,
IQUERY_SWEEP_UPLOADS_SIGNAL_ENABLED=True,
EGRESS_PROXY_HOSTS=["http://proxy_1:9090", "http://proxy_2:9090"],
)
Expand Down
4 changes: 2 additions & 2 deletions cl/settings/project/corpus_importer.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import environ

env = environ.FileAwareEnv()
IQUERY_PROBE_DAEMON_ENABLED = env.int(
"IQUERY_PROBE_DAEMON_ENABLED", default=False
IQUERY_CASE_PROBE_DAEMON_ENABLED = env.bool(
"IQUERY_CASE_PROBE_DAEMON_ENABLED", default=False
)
IQUERY_PROBE_ITERATIONS = env.int("IQUERY_PROBE_ITERATIONS", default=9)
IQUERY_PROBE_WAIT = env.int("IQUERY_PROBE_WAIT", default=300)
Expand Down

0 comments on commit 948b7d3

Please sign in to comment.