🎉 svc-infra v1.0 is here — Production-ready backend infrastructure
What's new
Nfrax Docs logoNfrax Docs

Infrastructure that just works. Ship products, not boilerplate.

Frameworks

  • svc-infra
  • ai-infra
  • fin-infra
  • robo-infra

Resources

  • Getting Started
  • What's New
  • Contributing

Community

  • GitHub

© 2026 nfrax. All rights reserved.

Nfrax Docs logoNfrax Docs
Start HereWhat's New
GitHub
svc-infra / API Reference

RedisSchedulerLeader

from svc_infra.jobs.leadership import RedisSchedulerLeader
View source
svc_infra.jobs.leadership

Redis-backed leadership lease for cloud-safe scheduler coordination.

Constructor
RedisSchedulerLeader(client: Redis, key: str = 'jobs:scheduler:leader', lease_seconds: int = 180, owner_id: str | None = None)
ParameterTypeDefaultDescription
clientrequiredRedis——
keystr'jobs:scheduler:leader'—
lease_secondsint180—
owner_idstr|NoneNone—

Methods

On This Page

Constructorensure_leaderrelease