backend.ai icon indicating copy to clipboard operation
backend.ai copied to clipboard

Refactor `run` command to be a combination of `start` and `exec` commands

Open fregataa opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. client-py has 2 short-cut commands run and start, which can create new session. Since run command is a legacy, it has arbitrary or outdated option names such as mode or type - they both has a same choice named batch.-

Describe the solution you'd like implement execute command and change run command into a combination of start and execute.

Additional context run command was implemented to execute python codes. The code can be sent through API by string format or through uploading a file.

fregataa avatar May 17 '22 05:05 fregataa

This should be rather a refactoring of the run command and a follow-up of #283.

achimnol avatar May 17 '22 06:05 achimnol

Let's rename the existing run command to run-legacy, and write the new run() using start and exec combinations from a clean slate.

achimnol avatar Jul 06 '22 03:07 achimnol