🎉 svc-infra v1.0 is here — Production-ready backend infrastructure
What's new
nfrax logonfrax

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 logonfrax
Start HereWhat's New
GitHub
svc-infra / API Reference

WorkerRunner

from svc_infra.jobs.runner import WorkerRunner
View source
svc_infra.jobs.runner

Cooperative worker loop with graceful stop. - start(): begin polling the queue and processing jobs - stop(grace_seconds): signal stop, wait up to grace for current job to finish

Constructor
WorkerRunner(queue: JobQueue, handler: ProcessFunc, poll_interval: float = 0.25)
ParameterTypeDefaultDescription
queuerequiredJobQueue——
handlerrequiredProcessFunc——
poll_intervalfloat0.25—

Methods

On This Page

Constructorstartstopasync