Workflow Data Retention
Hi,
how is the data life cylce in conductor? I encounter the issue that my dynomite / redis keeps everything forever :) What can i do about that? Is there are setting or is there even a data strategy implemented?
greets
I am curious. Can you elaborate on your issue?
Yep :) For example if i start workflows and they are executed successfully, then there is still the information in the redis database like the keys with WORKFLOW_TO_TASK, CORR_ID_TO_WORKFLOWS and so on. So if i progress now a lot of Workflows in the end i do have more than 10 million keys and keeps rising xD So when is a completed workflow deleted from dynomite/redis after execution?
I think this might be what you are looking for.
https://github.com/Netflix/conductor/issues/240
currently there is no delete on the workflow. However, you can either overwrite the existing definition or create a new one. There is no additional overhead. We do plan to prioritize this for the coming quarter though.
I think this refers to the workflow metadata (the dsl definition), not to a workflow instance
@cheveyo20
Is this what you're looking for?
curl -X DELETE --header 'Accept: application/json' 'http://{host}:{port}/api/workflow/{workflowid}/remove?archiveWorkflow=false'
You should be able to delete completed workflows using the API mentioned in the previous comment.
Hi, I can see that the /api/workflow/{workflowid}/remove gives you 204, but when we hit GET /workflow-api/api/workflow/{workflowid} we get the workflow execution details.
@pitumalkani Please ensure that you set the query param archiveWorkflow to false when removing the workflow, else this workflow is archived and will be available to be queried.