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

Need to Cleanup old rows in cws_sched_worker_proc_inst and cws_proc_inst_status #36

Open
galenatjpl opened this issue Mar 18, 2021 · 1 comment

Comments

@galenatjpl
Copy link
Contributor

galenatjpl commented Mar 18, 2021

Cleanup these rows, based on the historyDaysToLive value

cws.cws_sched_worker_proc_inst rows | keep only last 2 weeks of data | DELETE FROM cws.cws_sched_worker_proc_inst WHERE created_time < now() - interval 14 DAY and status != 'pending'; | yes |

cws.cws_proc_inst_status | keep only last 2 weeks of data | DELETE FROM cws.cws_proc_inst_status WHERE end_time is not null and end_time < now() - interval 14 DAY;

@galenatjpl
Copy link
Contributor Author

Criticality: low-medium (Project already has a workaround)
Time estimate: 2 days

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