floydhub/floyd-cli

check_cli_version should only be called if verbose flag is set

rmdort opened this issue · 4 comments

Shouldn't check_cli_version be called only if verbose flag is supplied by the user?

houqp commented

We are using this to push major client incompatible upgrade from the our server so it needs to be checked every time unfortunately. There is a more efficient way to implement this logic and avoid that extra API call when starting the client, but we haven't had time to implement it yet. I will keep this issue open as a reminder for the optimization.

This kind of defeats the purpose of having a format option in the CLI. #81

houqp commented

Closing this for now since you managed to find a better way to automate your workflow.

May I ask what kind of automation are you building around FloydHub? Depending on the use-case, we might be able to build it into FloydHub for you.

@houqp Sure. I am creating an end-to-end training + serving pipeline for our ML projects.

  1. We have a training server in K8, that creates a floyd job
  2. We poll every 1 min for the status of the job and get the output URI
  3. We deploy serving containers in K8 and each container download the models from floyd

Pretty straighforward. I guess floyd module API's are working fine for me now :)