Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jentic_apitools_jobs-1.0.0a14.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

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

jentic_apitools_jobs-1.0.0a14-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file jentic_apitools_jobs-1.0.0a14.tar.gz.

File metadata

  • Download URL: jentic_apitools_jobs-1.0.0a14.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jentic_apitools_jobs-1.0.0a14.tar.gz
Algorithm Hash digest
SHA256 ebe4494a95769a2bc2e8aef8e9776ef5cbc95a46c0c03057a8a7c467e71fe004
MD5 bf5a269d426b02261a59829da5925f7f
BLAKE2b-256 42f0cea9c2acb3623e6849a4f4c0fc2196e0554e1b609f33744aeb94b7b82b97

See more details on using hashes here.

File details

Details for the file jentic_apitools_jobs-1.0.0a14-py3-none-any.whl.

File metadata

File hashes

Hashes for jentic_apitools_jobs-1.0.0a14-py3-none-any.whl
Algorithm Hash digest
SHA256 f5a028261944ed7029616d04c163d5d3cbef3a4b7f72abe59dbf3c9172052b11
MD5 4102c8c48fe0ad06eced822058d0ef95
BLAKE2b-256 ae113ab5b38229cb5f9253305af6a0d57f50e400cb1cd4271f6352b481fd6e17

See more details on using hashes here.

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