The eqsql package provies an API for HPC workflows to submit, run, and retrieve tasks (such as simulation model runs) using queues implemented in a database.
Project description
EMEWS QUEUES in SQL for Python
The eqsql package provies an API for HPC workflows to submit tasks (such as simulation model runs) to a queue implemented in a database. eqsql worker pools pop tasks off this queue for evaluation, and push the results back to a database input queue. The tasks can be provided by a Python or R language model exploration (ME) algorithm.
A task is submitted with the following arguments: an experiment id; the task work type; the task payload; an optional priority that defaults to 0; and an optional metadata tag string. The payload contains sufficient information for a worker pool to execute the task and is typically a JSON formatted string, either a JSON dictionary or in less complex cases a simple JSON list. On submission, the API creates a unique task identifier (an integer) for the task and inserts that identifier, the experiment identifier, the work type, and the payload into the EMEWS DB tasks table, together with a task creation timestamp. That task identifier, priority and work type are then inserted into the EMEWS DB output queue table.
API docs are here
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 eqsql-0.10.1.tar.gz
.
File metadata
- Download URL: eqsql-0.10.1.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3253669fe700a345597b4248c32a0e61bebb57dd87b1a38850135b0870dcfbd9 |
|
MD5 | f4aff57b5842a10699ac5f771ac3fc88 |
|
BLAKE2b-256 | 1e28c0addc9156136cd03933babdea01a05f30d71dc82ff13b8be5c565f216bd |
File details
Details for the file eqsql-0.10.1-py3-none-any.whl
.
File metadata
- Download URL: eqsql-0.10.1-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 101678946b0fd8b11f29ceeb64578f289ac1bf44c450312ed1755feef7935c81 |
|
MD5 | beda669e82005f65e6a4b6f573959e1d |
|
BLAKE2b-256 | fbc231e1a85c78f1c7046d70283f0d489a568fc81e4c52e1e32cd128177d2a51 |