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.0a3.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.0a3-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jentic_apitools_jobs-1.0.0a3.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

Hashes for jentic_apitools_jobs-1.0.0a3.tar.gz
Algorithm Hash digest
SHA256 ae5756c398feef41243333b81c99fd36e76accbece2219c26afab0b620c14d4f
MD5 0b91f243f3c22d1a043733a1e93a7fbd
BLAKE2b-256 305194eb22fa98374b6f4ca53a6506eda4b23fbd3f5fb964c802455780687d28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jentic_apitools_jobs-1.0.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 4f1ad9414764b87b15e26ca1ac2ae9f51ec50ce349d72746a75d8d01a03b880b
MD5 b25c0d4b8a2092f5ae0f19192cdf709a
BLAKE2b-256 06317c85b2129fc1a552434646a66d28b8f9a44292257237009a66c78ba93ee6

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