Running the garbageCollectTaskPersistence stored procedure can result in a deadlock error if other database tasks are occurring simultaneously. This article outlines the cause of this conflict and provides recommendations for managing task cleanup.
Identity Manager 14.5 & 15
A deadlock occurs when the garbageCollectTaskPersistence stored procedure and the archiveTaskPersistence stored procedure operate on the same resources simultaneously.
garbageCollectTaskPersistence is designed to delete records from Task Persistence tables.archiveTaskPersistence deletes records from Task Persistence tables and inserts them into Archive database tables.Running both processes concurrently triggers lock contention as both procedures attempt to access the same database items.
To prevent deadlocks and ensure database stability, follow these guidelines:
garbageCollectTaskPersistence and archiveTaskPersistence at the same time.archiveTaskPersistence, running garbageCollectTaskPersistence is generally unnecessary, as archiving provides a more comprehensive maintenance path.archive_gcTaskPersistence stored procedure.To speak with a customer representative or a Support Engineer see . Scroll to the bottom of the page and click on your respective region.