Skip to main content

Parallel execution of DVC stages

Project description

zincware PyPI version Discord

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] paraffin is 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paraffin-0.3.3.tar.gz (646.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paraffin-0.3.3-py3-none-any.whl (650.8 kB view details)

Uploaded Python 3

File details

Details for the file paraffin-0.3.3.tar.gz.

File metadata

  • Download URL: paraffin-0.3.3.tar.gz
  • Upload date:
  • Size: 646.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.5 Darwin/24.1.0

File hashes

Hashes for paraffin-0.3.3.tar.gz
Algorithm Hash digest
SHA256 a516203b2efc898fe2c58beccd091f25cb27211e600ad185c017dc11e87c0cd7
MD5 cecfbb8251f212590fddb3d16ca89b28
BLAKE2b-256 9cd6702c7bb9ba061bc628ddeed11c5585c2250bd6f0e096de0cbd301d4b57ee

See more details on using hashes here.

File details

Details for the file paraffin-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: paraffin-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 650.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.5 Darwin/24.1.0

File hashes

Hashes for paraffin-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 43f23028f86f8bd2076f216d65be9e90689e14880165558ccfcc217f48bd5ca4
MD5 5a5ee5a000d93a8f67549787869852fb
BLAKE2b-256 64c6497ac7f29143d3f850c7757428aef2f366d3c16e9c38295db1480843822a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page