Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`