Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pwwang/pipen-lock
Process lock for pipen to prevent multiple runs at the same time
https://github.com/pwwang/pipen-lock
Last synced: 14 days ago
JSON representation
Process lock for pipen to prevent multiple runs at the same time
- Host: GitHub
- URL: https://github.com/pwwang/pipen-lock
- Owner: pwwang
- License: mit
- Created: 2023-03-14T05:02:14.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T23:26:17.000Z (5 months ago)
- Last Synced: 2024-12-10T04:27:01.449Z (24 days ago)
- Language: Python
- Size: 198 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pipen-lock
Process lock for pipen to prevent multiple runs at the same time
## Installation
```bash
pip install -U pipen-lock
```## Enable/Disable
The plugin is enabled by default. To disable it, either uninstall it or:
```python
from pipen import Proc, Pipen# process definition
class MyPipeline(Pipen):
plugins = ["-lock"]```
## Configuration
- `lock_soft`: Whether to use soft lock. Default: `False`
non-soft lock is platform dependent while soft lock only watches the existence of the lock file.
See more details
for the difference between `FileLock` and `SoftFileLock`