Add local SQLite sample - #193
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 14 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (14)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage Report for CI Build 36742552910Warning Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes. Coverage increased (+0.09%) to 89.045%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
A single-project sample that stores jobs in a local SQLite file through the EF Core provider, with no containers or external services.
8ff5909 to
d29855a
Compare
Summary
samples/Sqlite: a single ASP.NET Core app that stores Immediate.Jobs state in a local SQLite file (immediate-jobs.db) through the EF Core provider, in single-server mode. It needs no containers, Aspire, or external database.POST /greetings/{name}(enqueue),POST /greetings/{name}/delayed(runs in one minute),POST /retry-demo(fails twice with a 10s fixed backoff, then succeeds), andGET /health. A recurringheartbeatjob runs every minute, and the dashboard is at/jobs.Warningso the console shows job activity rather than every query.EnsureCreatedAsyncdoesn't update an existing database, so the file must be deleted after schema changes.Immediate.Jobs.slnxand links it from the root readme.The project is named
SqliteSamplerather thanSqlite, because a project namedSqlitemakes NuGet report a dependency cycle with theSQLitepackage that EF Core pulls in.Testing
dotnet build Immediate.Jobs.slnx: 0 warnings, 0 errors (net8.0, net10.0, net11.0)./jobsloads,/healthreturnsHealthy, and/jobs/api/serversreports the node.