Skip to main content

Asynchronous and distributed scheduling of Ewoks workflows from python

Project description

ewoksjob

Pipeline Code style: black License Coverage Docs PyPI

Utilities for job scheduling of ewoks workflows.

Ewoksjob provides an ewoks interface for asynchronous and distributed scheduling of ewoks from python.

Note that ewoksjob distributes the execution of workflows while ewoksdask distributes the execution of tasks in a workflow. So in the context of workflows, job scheduling exists on two levels.

The primary clients that need to schedule workflows are

Installation

Install on the client side

pip install ewoksjob

Install on the worker side

pip install ewoksjob[worker]

Getting started

Start a worker pool that can execute ewoks graphs

ewoksjob worker

Submit a workflow on the client side

from ewoksjob.client import submit

workflow = {"graph": {"id": "mygraph"}}
future = submit(args=(workflow,))
result = future.result(timeout=None)

Note that both environments need to be able to import celeryconfig which contains celery configuration (mainly the message broker and result backend URL's).

Hello world example

Clone the git repository and start a worker pool

scripts/worker.sh --sql

Submit workflows

scripts/runjobs.sh --sql

Tests

pytest --pyargs ewoksjob

To run the redis tests you need redis-server (e.g. conda install redis-server).

Documentation

https://ewoksjob.readthedocs.io/

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

ewoksjob-1.5.0.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

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

ewoksjob-1.5.0-py3-none-any.whl (48.5 kB view details)

Uploaded Python 3

File details

Details for the file ewoksjob-1.5.0.tar.gz.

File metadata

  • Download URL: ewoksjob-1.5.0.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ewoksjob-1.5.0.tar.gz
Algorithm Hash digest
SHA256 c062288613368c70264375cc4dd421d027d014160a4bbe17ddce4cc366e1cec1
MD5 fa6de223d07d446875d043c724aedc90
BLAKE2b-256 bf02daaef6f8035c0efe35e08a10b63878b133ed07f8f135f8fa9e8740e043c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ewoksjob-1.5.0.tar.gz:

Publisher: release.yml on ewoks-kit/ewoksjob

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ewoksjob-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: ewoksjob-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 48.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ewoksjob-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d91ca5b7c16d6569e517d0cba6351fa13422734f57377321ccdb4e7045bf830
MD5 0c95252f20937c456dd53be39cdbf93d
BLAKE2b-256 79193b10fe4d319bf3cf0df4fd84dee9a2664eaa18506f61765712505ea8adc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for ewoksjob-1.5.0-py3-none-any.whl:

Publisher: release.yml on ewoks-kit/ewoksjob

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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