Implement ModelManagerClient.delete_job_by_model_name

Open
#79 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start by locating ModelManagerClient and reading its existing read_job_collection and delete_job_by_id methods. Implement delete_job_by_model_name to find jobs whose modelName matches the supplied model name and delete each matching job by id; done means all matching jobs are removed.

Written by the indexing model from the issue text.

Description

To be able to re-use a model name, we need to delete both the Model resource and the Job ressource. If the Model resource has been deleted, it is not easy to find the job which is blocking the model name.

We should thus implement a delete_job_by_model_name method which does something like this:

all_jobs = model_manager.read_job_collection()

for job in all_jobs["jobs"]:
    if job["modelName"] == model_name:
        model_manager.delete_job_by_id(job["id"])
Dominant language
Jupyter Notebook
Stars
20
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SAP/data-attribute-recommendation-python-sdk

All issues in SAP/data-attribute-recommendation-python-sdk

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.