This commit is contained in:
bakatrouble 2019-01-26 12:38:13 +03:00
parent ec01ab879f
commit 69b37cdd27

View File

@ -4,11 +4,12 @@ from telebot import TeleBot
from djconfig import config
from config.celery import app
from feeds.models import Feed
@app.task(base=QueueOnce)
def check_feeds():
from feeds.models import Feed
feeds = Feed.objects.filter(lock=False)
for feed in feeds:
feed.run_check()