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

Added delete task API. #127

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Added delete task API. #127

merged 1 commit into from
Mar 30, 2023

Conversation

Nurlanprog
Copy link
Contributor

Description

Function accepts task id and performs deleting task.

Issues Resolved

#104

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Function accepts task id and performs deleting.

Signed-off-by: Nurlan <nabzalbekov0@gmail.com>
try:
delete_task_obj = ml_client.delete_task(task_id)
assert delete_task_obj.get("result") == "deleted"
except: # noqa: E722
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should specify the exception here to avoid a too broad except

@dhrubo-os dhrubo-os merged commit 2c73825 into opensearch-project:main Mar 30, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 30, 2023
Function accepts task id and performs deleting.

Signed-off-by: Nurlan <nabzalbekov0@gmail.com>
(cherry picked from commit 2c73825)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 30, 2023
Function accepts task id and performs deleting.

Signed-off-by: Nurlan <nabzalbekov0@gmail.com>
(cherry picked from commit 2c73825)
dhrubo-os pushed a commit that referenced this pull request Mar 31, 2023
Function accepts task id and performs deleting.

Signed-off-by: Nurlan <nabzalbekov0@gmail.com>
(cherry picked from commit 2c73825)

Co-authored-by: Nurlan <nabzalbekov0@gmail.com>
dhrubo-os pushed a commit that referenced this pull request Mar 31, 2023
Function accepts task id and performs deleting.

Signed-off-by: Nurlan <nabzalbekov0@gmail.com>
(cherry picked from commit 2c73825)

Co-authored-by: Nurlan <nabzalbekov0@gmail.com>
@Nurlanprog Nurlanprog deleted the delete_task branch April 7, 2023 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants