console.rule(f"[red bold]Purge all tasks! :fire:", align="left")
print("\n")
subprocess.run(["celery", "-A", "resolve_proxy_encoder.worker", "purge", "-Q", VC_KEY])
# TODO: Would be great if we can pass options unparsed by Typer
# This command could serve as a gateway to all Celery commands,
# but typer parses 'f' in 'broker purge -f' as an undefined option
@cli_app.command()
def celery(command: List[str]):
"""Pass celery commands to Celery buried within venv"""
print("\n")
console.rule(f"[cyan bold]Celery command :memo:", align="left")
print("\n")
subprocess.run(["celery", "-A", "resolve_proxy_encoder.worker", command])
@cli_app.command()
def config():
Would be great if we can pass options unparsed by Typer
This command could serve as a gateway to all Celery commands,
but typer parses 'f' in 'broker purge -f' as an undefined option
https://github.com/in03/Resolve-Proxy-Encoder/blob/7d5417d6d96c9c93bfafa936314802a675d1837a/resolve_proxy_encoder/app/cli.py#L205
81f2b1080b49d087df711a4352ea1eeca33e4d63