Skip to main content

PyPI Python License

evoid-scheduler

Priority-aware scheduler — Intent Handler system

Quick StartIntent HandlerFeaturesAPI


Quick Start

uv add evoid-scheduler

Method 1: Intent Handler (Recommended)

from evoid_scheduler import register_handlers

# Register scheduler as Intent handlers
register_handlers(max_workers=4)

Method 2: Direct API

from evoid_scheduler import SchedulerEngine, Priority

scheduler = SchedulerEngine()
await scheduler.submit(intent=process_payment, priority=Priority.CRITICAL)

Intent Handler

evoid-scheduler registers priority-aware task scheduling as Intent handlers.


Features

  • True priority queue — O(log n) enqueue/dequeue
  • System metrics — CPU cores, load average, memory usage
  • Adaptive concurrency — Adjusts based on system load
  • Task deferral — Low-priority tasks deferred when system is busy
  • Cross-service balancing — Distribute work across instances

Configuration

TOML

[engines]
scheduler = "scheduler"

[engines.options.scheduler]
max_workers = 4

API

register_handlers(max_workers: int = 4)

Register scheduler as Intent handlers.

SchedulerEngine Methods

Method Signature Description
submit async submit(intent, priority, ...) Submit task with priority
metrics metrics() Get system metrics
active active Count of running tasks

Priority Levels

Priority Value Use Case
CRITICAL 1 Payments, medical
HIGH 2 User requests
NORMAL 3 Background jobs
LOW 4 Analytics, logging

Dependencies

  • evoid>=0.4.0

Links

License

MIT

Release files for evoid-scheduler 0.2.0

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

Built distribution (wheel)

Table of built distributions (wheels) for evoid-scheduler 0.2.0
File Interpreter ABI Platform
evoid_scheduler-0.2.0-py3-none-any.whl Python 3 none any Details

Release files / evoid_scheduler-0.2.0-py3-none-any.whl

Download URL evoid_scheduler-0.2.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd34b53ad818af5376478eb4b350b1aed65117354a4a89039785d02f2c4f250e
BLAKE2b-256 checksum
How to use checksums
5501e6ee94cb509474d430869124b84072055425f788ed807075e92bd138af95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.3

1 release file

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