You can specify how many independent threads of execution your asset purge function uses to delete repository items. Set the threadPoolSize
property of the PurgeExecutor
component for your asset purge function to control the number of threads it uses. See information about the PurgeExecutor
component in Configuring Basic Purging Components.
If you include related actions or additional processing components in your asset purge function, make sure that the actions or additional processing are compatible with the number of threads you specify. For example, some complicated repository updates may encounter errors if multiple threads attempt to perform updates at the same time. If the actions or additional processing for your asset purge function require synchronization to make them thread safe, your asset purge function may be effectively limited to one thread. If needed, you can set the threadPoolSize
property to 1
.