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

Implement ModelManagerClient.delete_job_by_model_name #79

Open
mhaas opened this issue Sep 21, 2020 · 0 comments
Open

Implement ModelManagerClient.delete_job_by_model_name #79

mhaas opened this issue Sep 21, 2020 · 0 comments

Comments

@mhaas
Copy link
Member

mhaas commented Sep 21, 2020

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"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant