We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b06424 commit f8cc9c4Copy full SHA for f8cc9c4
1 file changed
automation/inbox/reader.py
@@ -12,10 +12,11 @@
12
13
import logging
14
import re
15
+import time
16
from typing import Any
17
18
from automation.review import github as gh
-from automation.crawler.arxiv import fetch_single_paper
19
+from automation.crawler.arxiv import fetch_single_paper, _REQUEST_DELAY
20
21
logger = logging.getLogger(__name__)
22
@@ -86,6 +87,7 @@ def read_inbox(
86
87
fetched_any = True
88
else:
89
logger.warning("Inbox: could not fetch %s", aid)
90
+ time.sleep(_REQUEST_DELAY) # respect arXiv rate limit
91
92
# Mark comment as processed with 👍 reaction
93
if fetched_any:
0 commit comments