from celery import Celery

from conf import celery_settings, REDIS_URL

app = Celery(
    'worker',
    broker=f'{REDIS_URL}/{celery_settings.TASKS_DB}',
    result_backend=f'{REDIS_URL}/{celery_settings.RESULT_DB}',
)
app.conf.broker_transport_options = {'visibility_timeout': 60 * 15}  # 15 minutes

from .tasks import *  # isort:skip

from celery import Celery

from conf import celery_settings, REDIS_URL

app = Celery(
    'worker',
    broker=f'{REDIS_URL}/{celery_settings.TASKS_DB}',
    result_backend=f'{REDIS_URL}/{celery_settings.RESULT_DB}',
)
app.conf.broker_transport_options = {'visibility_timeout': 60 * 15}  # 15 minutes

from .tasks import *  # isort:skip

# 15 minutes # isort:skip