<filename>opennem/scheduler/__init__.py
from huey import RedisHuey, crontab

# from opennem.api.exporter import wem_run_all
from opennem.settings import settings

huey = RedisHuey("opennem.exporter", host=settings.cache_url.host)


# @huey.periodic_task(crontab(minute="*/10"))
# def wem_export_task():
#     wem_run_all()

<filename>opennem/scheduler/__init__.py
from huey import RedisHuey, crontab

# from opennem.api.exporter import wem_run_all
from opennem.settings import settings

huey = RedisHuey("opennem.exporter", host=settings.cache_url.host)


# @huey.periodic_task(crontab(minute="*/10"))
# def wem_export_task():
#     wem_run_all()

# from opennem.api.exporter import wem_run_all # @huey.periodic_task(crontab(minute="*/10")) # def wem_export_task(): #     wem_run_all()