Ocluse.LiquidSnow.Jobs.Postgres
0.1.0-preview1.0
dotnet add package Ocluse.LiquidSnow.Jobs.Postgres --version 0.1.0-preview1.0
NuGet\Install-Package Ocluse.LiquidSnow.Jobs.Postgres -Version 0.1.0-preview1.0
<PackageReference Include="Ocluse.LiquidSnow.Jobs.Postgres" Version="0.1.0-preview1.0" />
<PackageVersion Include="Ocluse.LiquidSnow.Jobs.Postgres" Version="0.1.0-preview1.0" />
<PackageReference Include="Ocluse.LiquidSnow.Jobs.Postgres" />
paket add Ocluse.LiquidSnow.Jobs.Postgres --version 0.1.0-preview1.0
#r "nuget: Ocluse.LiquidSnow.Jobs.Postgres, 0.1.0-preview1.0"
#:package Ocluse.LiquidSnow.Jobs.Postgres@0.1.0-preview1.0
#addin nuget:?package=Ocluse.LiquidSnow.Jobs.Postgres&version=0.1.0-preview1.0&prerelease
#tool nuget:?package=Ocluse.LiquidSnow.Jobs.Postgres&version=0.1.0-preview1.0&prerelease
LiquidSnow Jobs for PostgreSQL
This package persists LiquidSnow jobs in PostgreSQL and safely distributes due work between application instances using renewable leases and FOR UPDATE SKIP LOCKED.
Configuration
services
.AddJobs()
.AddJob<SendEmailJob>("email.send.v1")
.UsePostgres(
configuration.GetConnectionString("ApplicationDatabase")!,
options => options.CreateSchemaIfNotExists = true);
CreateSchemaIfNotExists is intended for development and is disabled by default. For production deployments, execute the SQL returned by PostgresJobSchema.GetCreateScript() through the application's normal migration process.
An existing NpgsqlDataSource can be shared with EF Core:
services
.AddJobs()
.AddJob<SendEmailJob>("email.send.v1")
.UsePostgres(dataSource);
Use the asynchronous scheduler API when durability matters:
await scheduler.ScheduleAsync(new SendEmailJob(
Id: Guid.NewGuid(),
Start: DateTimeOffset.UtcNow,
MessageId: messageId));
Scheduling is at-least-once. Handlers should be idempotent because a worker can finish its external side effect and stop before recording completion.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Npgsql (>= 9.0.3)
- Ocluse.LiquidSnow.Core (>= 0.6.5-preview10.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview1.0 | 83 | 8/22/2026 |