web / lib/jobs/handlers/cleanup-approval-locks-job
lib/jobs/handlers/cleanup-approval-locks-job
Cleanup job for service processing locks.
Previously cleaned up in-memory transition locks from StageTransitionService. The in-memory lock mechanism was removed because the Payload beforeChange hook contract already prevents concurrent hooks for the same document update.
This job is retained as a no-op to avoid breaking the Payload job registry.
Variables
cleanupApprovalLocksJob
constcleanupApprovalLocksJob:object
Type Declaration
slug
slug:
string="cleanup-approval-locks"
schedule
schedule:
object[]
handler()
handler: () =>
object
Returns
object
output
output:
object
output.transitionLocksCleaned
transitionLocksCleaned:
number=0
output.totalCleaned
totalCleaned:
number=0
Last updated on