Skip to content

Commit a7f2fb5

Browse files
committed
max concurrency in validate_evnet_sources 2
1 parent 6c2a3f6 commit a7f2fb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/scripts/validate_event_sources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
class EventSourceValidator:
2727
"""Validates event source URLs and removes invalid events"""
2828

29-
def __init__(self, max_concurrent=10):
29+
def __init__(self, max_concurrent=2):
3030
self.user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
3131
self.max_concurrent = max_concurrent
3232

@@ -308,7 +308,7 @@ def main():
308308
parser = argparse.ArgumentParser(description='Validate event source URLs (with concurrent requests)')
309309
parser.add_argument('--limit', type=int, help='Limit number of events to check (for testing)')
310310
parser.add_argument('--school', type=str, help='Filter by school name')
311-
parser.add_argument('--workers', type=int, default=10, help='Max concurrent requests (default: 10)')
311+
parser.add_argument('--workers', type=int, default=2, help='Max concurrent requests (default: 2)')
312312

313313
args = parser.parse_args()
314314

0 commit comments

Comments
 (0)