Skip to main content

No project description provided

Project description

dask-iclx

python version Local tests codecov License

Adapts the dask-lxplus package to enable jobs to run on the IC HTCondor cluster.

Setup

Install from either conda-forge

conda install dask-iclx

or PyPI

pip install dask-iclx

Usage

from distributed import Client
from dask_iclx import ICCluster
import socket

with ICCluster(
    cores = 1,
    memory = '3000MB',
    disk = '10GB',
    death_timeout = '60',
    lcg = False,
    nanny = False,
    container_runtime = 'none',
    log_directory = '/vols/experiment/username/dask-logs',
    scheduler_options = {
        'port': 60000,
        'host': socket.gethostname(),
    },
    job_extra = {
        "+MaxRuntime": "1200",
    },
    name="ClusterName",
) as cluster:
    n_workers = 1
    with Client(cluster) as client:
        futures = []
        cluster.scale(n_workers)
        for _ in range(n_workers):
            f = client.submit(lambda: socket.gethostname())
            futures.append(f)
        print(client.gather(futures))  # ['lxb10.hep.ph.ic.ac.uk']

IC/CERN extras

There are a few changes in the wrapper to address some of the particular features of the IC HTCondor cluster, but there are also a few changes to detail here.

Options

  • lcg: If set to True this will validate and use the LCG python environment per the managed LCG releases. An example use would be to do the following before running:

    source /cvmfs/sft.cern.ch/lcg/views/LCG_107/x86_64-el9-gcc14-opt/setup.sh
    
  • container_runtime: Can be set to "singularity" or "none". If a runtime is needed for the worker, this selects which will be used for the HTCondor job the worker runs. In principle it should not be necessary when using lcg and should therefore be set to "none". Default though is "singularity".

  • worker_image: The image that will be used if container_runtime is defined to use one. The default defined in jobqueue-ic.yaml.

  • name: Optionally set a string that will identify the jobs in HTCondor.

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

dask_iclx-0.5.2.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

dask_iclx-0.5.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file dask_iclx-0.5.2.tar.gz.

File metadata

  • Download URL: dask_iclx-0.5.2.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for dask_iclx-0.5.2.tar.gz
Algorithm Hash digest
SHA256 9767eb265ceb411b27e8b8a656a1ddb5a44a3cdc524692d675a700a2ec7b5141
MD5 548f8d6dd1a74421f71ced2b0446a627
BLAKE2b-256 48f690cff884d68bd6aad292e1b74501556e89779942f2a5bc1c2df4c04383f6

See more details on using hashes here.

File details

Details for the file dask_iclx-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: dask_iclx-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for dask_iclx-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 15d55abbb126892e63ff6c4091ea49d447e7ea25b40ec5a30da0cf256df739e6
MD5 872a4a0088bfa598245bd37a2b34df26
BLAKE2b-256 735f2f0effe292e11224559400bc7ff2a6c766573a7903b700374c078695ed75

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