web / lib/jobs/handlers/cleanup-approval-locks-job
lib/jobs/handlers/cleanup-approval-locks-job
Cleanup job for service processing locks.
This job runs periodically to clean up any stale processing locks in the StageTransitionService. It prevents memory leaks from locks that might not have been properly cleaned up due to application crashes or errors.
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=result.output.cleaned
output.totalCleaned
totalCleaned:
number=result.output.cleaned
Last updated on