Skip to content

Need to Cleanup old rows in cws_sched_worker_proc_inst and cws_proc_inst_status #36

@galenatjpl

Description

@galenatjpl

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions