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

[FEATURE] Track model last undeployed time #3503

Open
pyek-bot opened this issue Feb 5, 2025 · 1 comment
Open

[FEATURE] Track model last undeployed time #3503

pyek-bot opened this issue Feb 5, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@pyek-bot
Copy link
Contributor

pyek-bot commented Feb 5, 2025

Is your feature request related to a problem?
Currently, there is no easy way to determine if a model was un-deployed at a particular point in time or not. For deployments, you can query the .plugins-ml-task index and look for DEPLOY_MODEL task type to know when models were deployed. Moreover, you can also look at last_deploy_time when you fetch a model via its ID.

Example:

{
                "_id": "<MODEL_ID>",
                "_index": ".plugins-ml-model",
                "_primary_term": 4,
                "_score": 0.0,
                "_seq_no": 1,
                "_source": {
                    "algorithm": "REMOTE",
                    "connector_id": "<CONNECTOR_ID>",
                    "created_time": 1737753808053,
                    "is_hidden": false,
                    **"last_deployed_time": 1738511769832,**
                    "last_updated_time": 1738511769832,
                    "model_group_id": "<MODEL_GROUP_ID>",
                    "model_state": "DEPLOYED",
                    "name": "test model",
                },
                "_version": 14
            }

Tasks

         {
                "_id": "<TASK_ID>",
                "_index": ".plugins-ml-task",
                "_primary_term": 2,
                "_score": null,
                "_seq_no": 285,
                "_source": {
                    "create_time": 1738152921394,
                    "function_name": "REMOTE",
                    "is_async": true,
                    "last_update_time": 1738152927304,
                    "model_id": "<MODEL_ID>",
                    "state": "COMPLETED",
                    "task_type": "DEPLOY_MODEL"
                },
                "_version": 3,
                "sort": [
                    1738152921394
                ]
            }

Not knowing undeploy time makes it hard to debug problems during a time-frame where you wish to know the status of the model.

What solution would you like?
Track last_undeploy_time if applicable

@Zhangxunmt
Copy link
Collaborator

It makes sense to record the un-deploy status for local model. But it doesn't matter that much for remote model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants