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-RL-oss: Agentic RL Environments (MiMo RL release). 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: This works, but it's boilerplate I end up repeating in a lot of places, and indenting the whole…
Part of XiaomiMiMo/MiMo-V2.6-RL-oss.