Ocluse.LiquidSnow.Jobs.Postgres 0.1.0-preview1.0

This is a prerelease version of Ocluse.LiquidSnow.Jobs.Postgres.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ocluse.LiquidSnow.Jobs.Postgres" Version="0.1.0-preview1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ocluse.LiquidSnow.Jobs.Postgres" Version="0.1.0-preview1.0" />
                    
Directory.Packages.props
<PackageReference Include="Ocluse.LiquidSnow.Jobs.Postgres" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ocluse.LiquidSnow.Jobs.Postgres --version 0.1.0-preview1.0
                    
#r "nuget: Ocluse.LiquidSnow.Jobs.Postgres, 0.1.0-preview1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ocluse.LiquidSnow.Jobs.Postgres@0.1.0-preview1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ocluse.LiquidSnow.Jobs.Postgres&version=0.1.0-preview1.0&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Ocluse.LiquidSnow.Jobs.Postgres&version=0.1.0-preview1.0&prerelease
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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