Commit f6b2c928 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

fix huey task import

parent 2174b886
Loading
Loading
Loading
Loading
+4 −1
Changes for circe/__init__.py: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -334,7 +334,10 @@ def start_workers(workers: int = CONFIG["CIRCE_WORKERS"]):
    if CONFIG["CIRCE_IMMEDIATE_MODE"]:
        sys.exit("Can't start workers if CIRCE_IMMEDIATE_MODE=1")
    working_directory = os.path.dirname(os.path.abspath(__file__))
    call(["huey_consumer.py", "tasks.huey", "-w", str(workers)], cwd=working_directory)
    call(
        ["huey_consumer.py", "circe.tasks.huey", "-w", str(workers)],
        cwd=working_directory,
    )


def serve(