Skip to main content

SIP Processing Block Controller library.

Project description

SKA SDP SIP Processing Block Controller

Library and Celery worker image for executing Processing Block workflows within the SDP SIP prototype code. This is implemented as a set of Celery tasks which can be used to asynchronously execute SIP Processing Block workflows on a Processing Block Controller (Celery Worker) instance.

Library installation

pip install skasip-pbc

Starting a containerised PBC instance

For the Processing Block Controller to function, a Redis Database instance must be created, which provides the role of the Celery Broker and Execution Control Configuration Database. Once this is available, a Processing Block Controller (Celery Worker) can be started.

For the Redis Databasem a standard redis container can be started (eg. using the official redis:5.0.1-alpine image). The Processing Block Controller Celery worker can be started using the image skasip/processing_block_controller.

A Docker Compose file (docker-compose.dev.yml) is provided in this folder for starting a Redis instance and a PBC Celery worker. This can be used with the following command:

docker stack deploy -c docker-compose.dev.yml pbc

Typical usage

Note: Requires a Celery Worker, Celery Broker, and a SKA SIP Execution Control Configuration Database instance are running (see above)!

# coding: utf-8
"""Example SIP PBC usage."""
import sip_pbc

# Get the PBC version.
result = sip_pbc.version.delay()
version = result.get(timeout=1)
print(version)

# Execute a PB workflow.
result = sip_pbc.execute_processing_block.delay(pb_id='...')

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

skasip-pbc-1.3.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

skasip_pbc-1.3.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file skasip-pbc-1.3.0.tar.gz.

File metadata

  • Download URL: skasip-pbc-1.3.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for skasip-pbc-1.3.0.tar.gz
Algorithm Hash digest
SHA256 5f580c9c2bdb38106aa0c64b2ad67742fde18568703279e1bfd14938aa951e36
MD5 8825fa3d4e39d2444c764275b46fd56c
BLAKE2b-256 7ca20ad5efca3ef18d1b589c1ca57944efdef41f648188bb25fa898f417eee9a

See more details on using hashes here.

File details

Details for the file skasip_pbc-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: skasip_pbc-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for skasip_pbc-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fe43c5cb5401c62d38e97b8bb566239368be2b445e5d1c533e908d82adf7048
MD5 e959f40c87e1874e7890de5624b7ae8a
BLAKE2b-256 11a0d30aacf68082dde767b229391aff12a17d0cc7adc915d8ab2951f915113a

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