Feature request: a decorator that wraps a function in a Redlock
Feature request: a decorator that wraps a function in a Redlock: a task in MiMo-V2.6-Code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). Right now if I want to make sure a function only runs one-at-a-time across my workers, I have to wrap every call site (or the body of the function) with the…
The task
Right now if I want to make sure a function only runs one-at-a-time across my workers, I have to wrap every call site (or the body of the function) with the `Redlock` context manager:
Part of openmodelai/MiMo-V2.6-Code.