-
Notifications
You must be signed in to change notification settings - Fork 93
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
Implement cancel job operation for CLI #695
Conversation
This introduces a cancel job operation for CLI that can be used to cancel a job running in studio. Command: `datachain studio cance <JOB_ID`
Deploying datachain-documentation with Cloudflare Pages
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #695 +/- ##
=======================================
Coverage 87.32% 87.32%
=======================================
Files 113 113
Lines 10798 10817 +19
Branches 1480 1483 +3
=======================================
+ Hits 9429 9446 +17
- Misses 991 992 +1
- Partials 378 379 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
I am not sure datachain studio cancel
is a good command name, it is too general and not verbose enough IMO. But I have no better options.
thanks @amritghimire !
let's rename it please though. It should be:
same with |
I think that it may be confusing to users since we don't have non studio version of job in local. The reason I included the cancel inside studio is that the operation is a concept totally located in Studio. |
https://github.com/iterative/studio/pull/11077#discussion_r1885529578 |
I see the point. But, I don't think it justifies the inconsistency tbh (datasets, jobs, etc - all should be the same in API and in CLI to my mind). Also the name "datachain studio cancel" is strange a bit anymways. It should be then or let's find some other options please ... |
is it PUT / POST though then? |
WDYT about
It is POST currently. We already have POST request for update-job. |
I think it is still not good, since it's not consistent with datasets. We should be using the same general schema for all types of entities. This is quite important I think. |
This introduces a cancel job operation for CLI that can be used to
cancel a job running in studio.
Command:
datachain studio cancel <JOB_ID