Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for zrok enable in python SDK #887

Closed
j93hahn opened this issue Feb 21, 2025 · 3 comments
Closed

add support for zrok enable in python SDK #887

j93hahn opened this issue Feb 21, 2025 · 3 comments

Comments

@j93hahn
Copy link

j93hahn commented Feb 21, 2025

Hi, I'd like to boot up a zrok server inside of a flyte job which doesn't have TTY enabled. As such, if I run

subprocess.run("zrok enable TOKEN")

it will hang forever. Doesn't matter what I use - pty, pexpect, os, subprocess, etc etc - they all fail or hang forever b/c there's no interactive CLI support in the flyte task.

So when I run zrok.environment.root.Load(), it will fail b/c zrok isn't configured. can support be added to run zrok.environment.enable() as part of the SDK and pass in the token only? Thanks!

@michaelquigley
Copy link
Collaborator

Have you tried zrok enable --headless?

There's already an issue for adding an "enable" call to the Python SDK (#509).

@j93hahn
Copy link
Author

j93hahn commented Feb 21, 2025

THANK YOU!!! this is exactly what i needed

@michaelquigley
Copy link
Collaborator

That's why --headless was included in zrok enable 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants