Parallel execution of DVC stages
Project description
paraffin
Paraffin, derived from the Latin phrase parum affinis meaning
little related, is a Python package designed to run DVC
stages in parallel. While DVC does not currently support this directly, Paraffin
provides an effective workaround. For more details, refer to the DVC
documentation on
parallel stage execution.
[!WARNING]
paraffinis still very experimental. Do not use it for production workflows.
Installation
Install Paraffin via pip:
pip install paraffin
Usage
paraffin submit
You can submit your current DVC workflow to a database file paraffin.db for later execution.
[!TIP] The paraffin submit command supports globing patterns.
paraffin submit C_AddNodeNumbers "A*"
paraffin worker
A submitted job will be executed by paraffin workers.
To start a worker you can run paraffin worker.
The worker will pick up all the jobs in the workeres queue and close once finished.
paraffin worker
paraffin ui
Paraffin ships with a web application for visualizing the progress. You can start it using
paraffin ui
Queue Labels
To fine-tune execution, you can assign stages to specific Celery queues, allowing you to manage execution across different environments or hardware setups.
Define queues in a paraffin.yaml file:
queue:
"B_X*": BQueue
"A_X_AddNodeNumbers": AQueue
Then, start a worker with specified queues, such as celery (default) and AQueue:
paraffin worker -q AQueue,default
All stages not assigned to a queue in paraffin.yaml will default to the default queue.
[!TIP] If you are building Python-based workflows with DVC, consider trying our other project ZnTrack for a more Pythonic way to define workflows.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file paraffin-0.3.3a1.tar.gz.
File metadata
- Download URL: paraffin-0.3.3a1.tar.gz
- Upload date:
- Size: 645.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.8 Linux/6.8.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dc47d1140b2f588526fde810ea75c8f37ca97ed17fd243c8619734e90f0bbe8
|
|
| MD5 |
81a99960088bcd669de6d19b9f38c9f7
|
|
| BLAKE2b-256 |
6a147f9bdf317e6338c57457bb5befbb2b4a89a23bbc6a44efd767f6c9c83aba
|
File details
Details for the file paraffin-0.3.3a1-py3-none-any.whl.
File metadata
- Download URL: paraffin-0.3.3a1-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.8 Linux/6.8.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e51414bd0cdbd3e1458921c49d24b2c6a02789ba28f73556f7dff2b6693503d0
|
|
| MD5 |
6db91245f254be58757d11c86588d298
|
|
| BLAKE2b-256 |
f6e36699fcf30a924663accb1ae4ea34c8a18f3fd9d3488377038890bb15c14b
|