VMware Cloud Community
ChrisMueller
Contributor
Contributor

Deleting finished workflow runs

Is there a way  to delete all finished workflow runs automatically ?

We are having a scheduler witch is running every 5 minutes, so there are a lot of workflow runs in our orchestrator.

0 Kudos
4 Replies
tschoergez
Leadership
Leadership

Hi!

You can set the numbers in the webbased configuration. However,this affect all workflows.

AFAIK there is no way to delete the token e.g. in a script or another workflow.

Maybe you can delete them manually in the database (but thats not supported, I guess). For that, find some ideas here:

http://communities.vmware.com/message/1832138

http://communities.vmware.com/message/1770213

Regards,

Joerg

0 Kudos
cdecanini_
VMware Employee
VMware Employee

In the web configuration / General / advanced configuration the "Max number of runs" will make sure there will not be more then this number of runs per workflow.

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
igaydajiev
VMware Employee
VMware Employee

Removing of completed w/f run's is done automatically. Starting from vCO 5.5.2 it is possible to configure the specific time/period when the clean job is run using cron expression

For example to configure custom schedule for the clean job set following property in vmo.properties file:

By default clean job is run every hour

com.vmware.o11n.purge.executions.cron=0 0 * * * ?

Details for cron expression can be found here.

Quartz Scheduler | Documentation | Quartz 1.x Tutorials: crontrigger

As already explained number of preserver w/f runs is configurable trough vCO Configurator.

0 Kudos
Burke-
VMware Employee
VMware Employee

Check in your vCO/vRO Client under: Workflows\Library\Configuration\Troubleshooting

Right-Click on "Delete all workflow runs", then select "Schedule Workflow"

Smiley Happy

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos