Avatar

Correct answer by
Community Advisor

Hi Abraham,

 

You can write a JS to purge the workflow logs using the workflow id and then start it. 

Follow the below sequence :

  • stop the workflow
  • purge the workflow logs
  • start the workflow

There are predefined js functions to do all the above 3 activities in just one code and you can automate this so it does not require manual effort for clearing the logs.

Frequency you can set once per fortnightly/monthly. 

Multiple recurring workflows on the platform often makes the workflow in a deadlock state with loads of logs.

 

Hope this solution helps.

 

Regards,

Anita

 

View solution in original post