In some cases if you have a lot of workflows running, or workflows which run very frequently, or if the workflows have a lot of output the JobStatus and WindowsWorkflowTaskJobStatus tables can get pretty large. Some customers are reporting sizes of up to 20-30 GB. These tables store the output of workflows that run in the system. Those workflows are almost always going to be successful and therefore are pretty uninteresting. For the small percentage of workflows that fail for some reason though these tables store the status of those workflows, what time they started/ended, what the output was, and what the error was if any. You can see this status information for workflows by selecting a particular workflow in the Workflows\Status view and then looking in the details pane:
By default Service Manager grooms these tables each night and deletes any data older than a configurable number of days in the past. This configuration setting is stored in the database and not exposed anywhere in the console. It’s stored on the PartitionAndGroomingSettings table.
SELECT * FROM PartitionAndGroomingSettings
You can change the number of days to keep for running a query like this one below and changing the number to what you want.
update PartitionAndGroomingSettings set DaysToKeep = 3 where ObjectName = 'JobStatus'
update PartitionAndGroomingSettings set DaysToKeep = 15 where ObjectName = 'InternalJobHistory'
Great Travis, It's exactly what we want.
Thank you very much.
Best case, could we have a setting for 2 value in Service Manager Administrator?
It`s really wonderful no have such amazing programme
Hi, those of you experiencing the WindowsWorkflowTaskJobStatus table growing should really check that you dont have workflows that trigger each other. For example, having 2 workflows that triggers on incident update without proper filtering would create this behavior so check the workflows.
Entries in WindowsWorkflowTaskJobStatus are purged after 7 days.
Can we manually delete the entries in the WindowsWorkflowTaskJobStatus using SQL, if our table has eaten all of the space that the partition can handle?
We have no way to increase the drive size and SCSM is at a stand still. We changed our grooming settings to 2 and 10, but it didn't hardly do any cleanup last night, but 3GB.
Any suggestions? I would appreciate it greatly.