Skip to main content

Parallel Processing Coordinator. Splits dataset processing to run parallel cluster jobs and aggregates outputs

Project description

ParProcCo

Requires a YAML configuration file in grandparent directory of package, CONDA_PREFIX/etc or /etc

--- !PPCConfig
allowed_programs:
    rs_map: msmapper_utils
    blah1: whatever_package1
    blah2: whatever_package2
url: https://slurm.local:8443
extra_property_envs: # optional mapping of properties to pass to Slurm's JobDescMsg
    account: MY_ACCOUNT # env var that holds account
    comment: mega job
valid_top_directories: # optional mapping of top directories accessible from cluster nodes
                       # (used to check job scripts, log and working directories)
    - /cluster_home
    - /cluster_apps

An entry point called ParProcCo.allowed_programs can be added to other packages' setup.py:

setup(
...
    entry_points={PPC_ENTRY_POINT: ['blah1 = whatever_package1']},
)

which will look for a module called blah1_wrapper in whatever_package1 package.

Testing

Tests can be run with

$ pytest tests

To test interactions with Slurm, set the following environment variables:

SLURM_REST_URL  # URL for server and port where the REST endpoints are hosted
SLURM_PARTITION # Slurm cluster parition 
SLURM_JWT       # JSON web token for access to REST endpoints

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

ParProcCo-2.1.0.tar.gz (56.3 kB view details)

Uploaded Source

Built Distribution

ParProcCo-2.1.0-py3-none-any.whl (66.8 kB view details)

Uploaded Python 3

File details

Details for the file ParProcCo-2.1.0.tar.gz.

File metadata

  • Download URL: ParProcCo-2.1.0.tar.gz
  • Upload date:
  • Size: 56.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for ParProcCo-2.1.0.tar.gz
Algorithm Hash digest
SHA256 f86ec8aabaf76d3e67a3718c56bf59c1a63aac9675d2650f66395fc9961e234f
MD5 75c7b213eef6f6c0160ce5acb62c341b
BLAKE2b-256 e483c3e1f929a0072af8fa0e01be187e246f6fecf4e3590e0ea5ca68c199bf12

See more details on using hashes here.

File details

Details for the file ParProcCo-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: ParProcCo-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 66.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for ParProcCo-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c61bfe2de654b175a85eeed03dde73b3f19aeffc51b11528e7b1399509836cb
MD5 40ee291baa5d56dd43260d9545ccd3bd
BLAKE2b-256 305e76843bdaf494d617a7ebe102c18ff8f5316e5cfa3855e57b83cee207cd92

See more details on using hashes here.

Supported by

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