in03 / proxima

Transcode source media directly from DaVinci Resolve using multiple machines for encoding. Great for creating proxies quickly.
MIT License
50 stars 3 forks source link

Would be great if we can pass options unparsed by Typer #196

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 2 years ago

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


    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():

81f2b1080b49d087df711a4352ea1eeca33e4d63

in03 commented 1 year ago

Fixed around the same time as #143