Jentic Apitools Jobs - Async job execution
Project description
Jentic API Tools - Jobs
Async job execution with pluggable backends for running pipeline operations in the background. Supports in-memory thread pool (default) and optional Redis/Celery distributed execution.
Key Features
The jobs package provides a TaskRunner abstraction with two implementations: ThreadPoolRunner for in-memory execution using a thread pool, and CeleryRunner for distributed execution via Redis and Celery. A create_task_runner factory selects the appropriate runner based on configuration. Job state is tracked through JobStorage (with MemoryJobStorage and Redis-backed implementations). Progress is reported through ProgressReporter objects that support SSE streaming to API clients. Periodic cleanup removes expired jobs and optionally their output directories.
Dependencies
Internal: jentic.apitools.common, jentic.apitools.pipelines. Optional: redis, celery[redis].
Installation
pip install jentic-apitools-jobs
Quick Start
from jentic.apitools.jobs import create_task_runner
from jentic.apitools.common.models import JobOperation
runner = create_task_runner()
runner.storage.create_job("job-1", JobOperation.SCORE)
runner.submit_job("job-1", JobOperation.SCORE, {"spec_url": "https://example.com/api.json"})
Testing
pytest tests -v
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jentic_apitools_jobs-1.0.0a8.tar.gz.
File metadata
- Download URL: jentic_apitools_jobs-1.0.0a8.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd4bf3e1dfcf922a7d4627e69a3719852b4623290a7a999b5067a9cbbafdd606
|
|
| MD5 |
81c38a498856a4360abcd400f4ffb217
|
|
| BLAKE2b-256 |
612b44e01d68320b82f891fe80aa5042611ad80dac464099bff3a4d3a14cdf9e
|
File details
Details for the file jentic_apitools_jobs-1.0.0a8-py3-none-any.whl.
File metadata
- Download URL: jentic_apitools_jobs-1.0.0a8-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faf3f0a8bfe52d31d47a1529e35b6ae8424c38585eeb6d069290d1d2780ae13a
|
|
| MD5 |
1b8ccae6367f74444edbf0ce88faa57a
|
|
| BLAKE2b-256 |
b0aee378ad9331e577700db8a3aafb5406a484e95800a08436269a951c04f791
|