Skip to main content

Covalent Dask Plugin

Project description

 

 

Covalent Dask Plugin

Covalent is a Pythonic workflow tool used to execute tasks on advanced computing hardware. The way in which workflows and tasks interface with the hardware is through executor plugins, such as the local executor packaged with core Covalent. The Dask executor plugin interfaces with a running Dask Cluster. Users can deploy tasks to the cluster by providing the scheduler address to the executor object. For more information about how to get started with Covalent, check out the project homepage and the official documentation.

To install this plugin with Covalent

  • Using pip:
pip install covalent-dask-plugin
  • Using this repo for development purposes:
git clone https://github.com/AgnostiqHQ/covalent-dask-plugin.git

cd covalent-dask-plugin

pip install -e .

After this package has been installed, run the following to start a Dask cluster with Python and retrieve the scheduler address:

from dask.distributed import LocalCluster

cluster = LocalCluster()
print(cluster.scheduler_address)

The address will look like tcp://127.0.0.1:55564 when running locally. Note that the Dask cluster does not persist when the process terminates.

This cluster can be used with Covalent by providing the scheduler address:

import covalent as ct

dask_executor = ct.executor.DaskExecutor(
                    scheduler_address="tcp://127.0.0.1:55564"
                )

@ct.electron(executor=dask_executor)
def my_custom_task(x, y):
    return x + y

...

For more information about how to get started with Covalent, check out the project homepage and the official documentation.

Release Notes

Release notes are available in the Changelog.

Citation

Please use the following citation in any publications:

W. J. Cunningham, S. K. Radha, F. Hasan, J. Kanem, S. W. Neagle, and S. Sanand. Covalent. Zenodo, 2022. https://doi.org/10.5281/zenodo.5903364

License

Covalent is licensed under the GNU Affero GPL 3.0 License. Covalent may be distributed under other licenses upon request. See the LICENSE file or contact the support team for more details.

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

covalent-dask-plugin-0.3.0.tar.gz (18.4 kB view details)

Uploaded Source

File details

Details for the file covalent-dask-plugin-0.3.0.tar.gz.

File metadata

  • Download URL: covalent-dask-plugin-0.3.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for covalent-dask-plugin-0.3.0.tar.gz
Algorithm Hash digest
SHA256 fc19b7f97f3960da878293ab90d7ec368cb3ccd75524b96a32382180bcdc5710
MD5 6e93736759a3308d76cf20ab9e9191a8
BLAKE2b-256 c25a4393d582bdf87de0b245c9d0dea69ca4ac294b845920c1555f7ae3eaf66d

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