conductor icon indicating copy to clipboard operation
conductor copied to clipboard

Workflow Data Retention

Open cheveyo20 opened this issue 8 years ago • 8 comments

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

cheveyo20 avatar Jan 02 '18 15:01 cheveyo20

I am curious. Can you elaborate on your issue?

saidatta avatar Jan 03 '18 21:01 saidatta

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?

cheveyo20 avatar Jan 04 '18 08:01 cheveyo20

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.

saidatta avatar Jan 04 '18 20:01 saidatta

I think this refers to the workflow metadata (the dsl definition), not to a workflow instance

cheveyo20 avatar Jan 05 '18 09:01 cheveyo20

@cheveyo20

Is this what you're looking for?

curl -X DELETE --header 'Accept: application/json' 'http://{host}:{port}/api/workflow/{workflowid}/remove?archiveWorkflow=false'

le-duane avatar Feb 16 '18 20:02 le-duane

You should be able to delete completed workflows using the API mentioned in the previous comment.

apanicker-nflx avatar Jan 18 '19 22:01 apanicker-nflx

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 avatar Jul 01 '19 13:07 pitumalkani

@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.

apanicker-nflx avatar Jul 02 '19 22:07 apanicker-nflx