Django implementation of the IVOA UWS pattern.
Project description
Django Universal Worker Service
Django implementation of the IVOA UWS pattern.
The Universal Worker Service (UWS) pattern defines how to manage asynchronous execution of jobs on a service. Any application of the pattern defines a family of related services with a common service contract. Possible uses of the pattern are also described.
Url: https://www.ivoa.net/documents/UWS/ DOI: 10.5479/ADS/bib/2016ivoa.spec.1024H
Quick start
- add
uws
to yourINSTALLED_APPS
setting likes this:
INSTALLED_APPS = [
...
'uws',
...
]
- Include the uws URLconf in your project urls.py like this::
...
path('uws/', include('uws.urls')),
...
- Run
python manage.py migrate uws
to create the UWS models. Optionally:python manage.py migrate uws --database uws
by specifying
DATABASE_ROUTERS = [
...
"uws.database_router.UWSDatabaseRouter",
...
]
and a `uws` entry in your `DATABASES` setting
- TODO: Add Celery configuration
Create a
celery.py
file in the<project>
folder:
import os
from celery import Celery
# Set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.default_settings")
app = Celery("project")
app.config_from_object("django.conf:settings", namespace="CELERY")
app.autodiscover_tasks()
Worker
Contributing
For developer access to this repository, please send a message on the ESAP channel on Rocket Chat.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-uws-0.1.dev348170.tar.gz
.
File metadata
- Download URL: django-uws-0.1.dev348170.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8033845b137c76b929b07cb9e112ba4a8df57b94ddce19119c35129b20a37973 |
|
MD5 | c2c1c330895ab2f47e1789512f4a4ed0 |
|
BLAKE2b-256 | 7bae9725135345c45d1bcf7cb5eb7f98817d6b7ca408d05e42d033a6eea184fc |
File details
Details for the file django_uws-0.1.dev348170-py3-none-any.whl
.
File metadata
- Download URL: django_uws-0.1.dev348170-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d586561897ad41f7e2a640a8ce37a2dab6322917e134d8b1dcc3a946111a4f63 |
|
MD5 | 344ef1f5b74b092e0be09639fd634c73 |
|
BLAKE2b-256 | 9a06e5cd36794bb72230f5021df847e726268c4e54309cf904a4697f735d23d6 |