Skip to main content

patera-taskmanager

Scheduled and background jobs for Patera, based on APScheduler. Part of Patera, a modular async-first Python web framework.

Installation

pip install patera-taskmanager
# or, with uv
uv add "patera[taskmanager]"

Requires Python 3.13 or newer and patera>=0.121.

Usage

For persistent job stores, set TaskManagerConfig(JOB_NAMESPACE="my-app-jobs") on your manager's configuration. Keep the namespace stable across restarts and unique for separate applications/stores using the same manager class. An empty namespace preserves existing stored job identifiers, but only one such manager may be active per process. A duplicate fails at startup instead of redirecting jobs to another app. Registrations are removed at shutdown. Separate applications also need separate job-store instances; do not share a store object between them.

patera-taskmanager schedules jobs with APScheduler:

from patera.taskmanager import TaskManager, schedule_job


class Jobs(TaskManager):

    @schedule_job("interval", minutes=5, id="cleanup")
    async def cleanup(self) -> None:
        self.app.logger.info("Cleaning up")

    @schedule_job("cron", hour=3, id="nightly")
    async def nightly(self) -> None: ...

See the Task manager section of the Patera documentation for the full guide.

License

MIT. See LICENSE.

Metadata

Release files for patera-taskmanager 0.13.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for patera-taskmanager 0.13.5
File Size Uploaded Provenance Actions
patera_taskmanager-0.13.5.tar.gz 6.9 kB Without provenance Details for patera_taskmanager-0.13.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for patera-taskmanager 0.13.5
File Interpreter ABI Platform Actions
patera_taskmanager-0.13.5-py3-none-any.whl Python 3 none any Details for patera_taskmanager-0.13.5-py3-none-any.whl

Total release size: 15.2 kB

Release files / patera_taskmanager-0.13.5.tar.gz

Download URL patera_taskmanager-0.13.5.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c0245e7e608f4b6b5eee2f1f853b6f51f7ca47b6ffa29450a47ae45b976ce6c3
BLAKE2b-256 checksum
How to use checksums
e64858efb1da9030b03164e546b65a94b6204fe9b5b1f7c12a2317d1b3aa4497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / patera_taskmanager-0.13.5-py3-none-any.whl

Download URL patera_taskmanager-0.13.5-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4be6428d92071258dd911dfd31a34bc9992cfcb55b77d7ffc6a9baf0728fc65d
BLAKE2b-256 checksum
How to use checksums
43285bd890da9258ce19bb8f239cf7d5aeea55f16004736ca1d797323de0f5e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for patera-taskmanager 0.13.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.13.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page