You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OnModuleDestroy kills the redis clients early, which means any locked resources still running/being processed (like queue messages) will throw The operation was unable to achieve a quorum during its retry window. error.
Changing the code above to use OnApplicationShutdown hook would prevent these kind of issues.
The text was updated successfully, but these errors were encountered:
https://github.com/anchan828/nest-redlock/blob/571d91242aea65514d45a05884c162f87987f8b4/packages/redlock/src/redlock.module.ts#L16C1-L34C3
OnModuleDestroy
kills the redis clients early, which means any locked resources still running/being processed (like queue messages) will throwThe operation was unable to achieve a quorum during its retry window.
error.Changing the code above to use
OnApplicationShutdown
hook would prevent these kind of issues.The text was updated successfully, but these errors were encountered: