-
Notifications
You must be signed in to change notification settings - Fork 26
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
cleanup unused functions from management service #24
Comments
Backwards compatibility clearWorkflowLog IIUC is a placeholder that hasn't been implemented yet with Elasticsearch. Otherwise, I think we need a solution to manage log data in Elasticsearch. AS a side note, we should consider removing log data when removing a function. |
You mean, if somebody has written a piece of code that utilizes the Management service APIs (besides our code, like the SDK)? Sure, we could add the appropriate responses. clearWorkflowLog and clearAllWorkflowLogs: we can modify them to indeed the delete the logs from Elasticsearch, but I think it might be better if we could automatically delete all logs after a certain amount of time (e.g., 30 days). For example,
@paarijaat, what do you think? |
Implementation started on branch feature/cleanup_management. |
I think perhaps removing the logs of a deleted workflow would make more sense. |
Yes, of course, as we're not executing functions but workflows. |
New issue to track deletion of workflow logs: #25 |
[Environment]: bare metal, Kubernetes (maybe)
[Known affected releases]: master (includes all releases)
The management service has the following functions that are either never called or don't do anything meaningful:
retrieveAllWorkflowLogs returns all workflow related logs and it is being used throughout GUI as well as SDK. One can modify it to use an optional parameter to return only a particular log type if needed, making retrieveWorkflowLog fully redundant.
Besides the management service, the GUI needs to be updated to skip the redundant calls to prepareAllWorkflowLogs and directly call retrieveAllWorkflowLogs. SDK already uses retrieveAllWorkflowLogs directly.
This would reduce the resource usage of the management service sandbox.
The text was updated successfully, but these errors were encountered: