From da78bffbd0bcbba6f9411c06e5e05e014594ae2c Mon Sep 17 00:00:00 2001 From: Yhtyyar Sahatov Date: Wed, 22 Jun 2022 18:19:23 +0300 Subject: [PATCH] removed select 1 --- .../mooncrawl/mooncrawl/moonworm_crawler/continuous_crawler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/crawlers/mooncrawl/mooncrawl/moonworm_crawler/continuous_crawler.py b/crawlers/mooncrawl/mooncrawl/moonworm_crawler/continuous_crawler.py index 900df29d..1ac12665 100644 --- a/crawlers/mooncrawl/mooncrawl/moonworm_crawler/continuous_crawler.py +++ b/crawlers/mooncrawl/mooncrawl/moonworm_crawler/continuous_crawler.py @@ -153,8 +153,6 @@ def continuous_crawler( try: while True: try: - # query db with limit 1, to avoid session closing - db_session.execute("SELECT 1") time.sleep(current_sleep_time) end_block = min(