pipen-lock
August 6, 2026 ยท View on GitHub
Process lock for pipen to prevent multiple runs at the same time
Installation
pip install -U pipen-lock
Development
# install project dependencies
uv sync
# include example-only dependencies
uv sync --group examples
# build distributions
uv build
Enable/Disable
The plugin is enabled by default. To disable it, either uninstall it or:
from pipen import Proc, Pipen
# process definition
class MyPipeline(Pipen):
plugins = ["-lock"]
Configuration
lock_soft: Whether to use soft lock. Default:Falsenon-soft lock is platform dependent while soft lock only watches the existence of the lock file. See more details https://py-filelock.readthedocs.io/en/latest/index.html#filelock-vs-softfilelock for the difference betweenFileLockandSoftFileLock