From aae9e7aac760a5ccc5f636c3b90cd784b5584bf2 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Tue, 19 Feb 2019 13:57:08 +0300 Subject: [PATCH] stop telebot to avoid threads limit --- feeds/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/feeds/tasks.py b/feeds/tasks.py index 3f132fe..b0e131d 100644 --- a/feeds/tasks.py +++ b/feeds/tasks.py @@ -34,6 +34,7 @@ def execute_feed(feed_pk): if last_id: feed.last_id = last_id feed.save() + bot.stop_bot() feed.last_check = timezone.now() feed.save() finally: