Documentation Map¶
Use this page to decide where to go next based on the way you plan to use NCronJob.
Start here¶
- Getting Started for the first working setup
- Define and Schedule Jobs for recurring jobs
- Minimal API for delegate-based jobs
Common user journeys¶
I want a recurring background job¶
- Getting Started
- Define and Schedule Jobs
- Passing Parameters
- Concurrency control
- Job timeouts and run expiry
I want to trigger work from an HTTP endpoint or application code¶
I want orchestration between jobs¶
I want to change jobs at runtime¶
Sample applications¶
The repository contains three useful starting points:
sample/MinimalSample: smallest recurring job setupsample/NCronJobSample: typed jobs, retries, concurrency, notifications, and HTTP-triggered instant jobssample/RunOnceSample: startup jobs viaRunAtStartup(...)andUseNCronJobAsync()
Important concepts to keep in mind¶
- Jobs run in-process and are not persisted across restarts
- Parameters are passed by reference and are not serialized
- Named jobs are the best choice when you want runtime management or to avoid ambiguity
- Forced instant jobs bypass queue and concurrency safeguards
- Startup jobs need
UseNCronJobAsync()orUseNCronJob()
Human docs vs. agent docs¶
Most pages in this site are written for human readers.
If you are consuming the docs with an agent or want a compact machine-friendly entry point, use: