🎉 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

InMemoryScheduler

from svc_infra.jobs.scheduler import InMemoryScheduler
View source
svc_infra.jobs.scheduler

In-process scheduler for interval and cron jobs. The scheduler keeps all task state in memory, which makes it a good default for local development, tests, and simple service processes.

Constructor
InMemoryScheduler(tick_interval: float = 60.0, timezone: str = 'UTC', now_provider: Callable[[], datetime] | None = None, leader: SchedulerLeadership | None = None)
ParameterTypeDefaultDescription
tick_intervalfloat60.0—
timezonestr'UTC'—
now_providerCallable[[], datetime] |NoneNone—
leaderSchedulerLeadership |NoneNone—

Methods

On This Page

Constructoraddadd_cronadd_jobadd_taskcloserunasynctickasync