Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.
ReferenceAPI ReferenceLibraryJobsHandlersCleanup Approval Locks Job

web


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

const cleanupApprovalLocksJob: 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