hangfire-litedb - Hangfire.LiteDB 0.4.1

LiteDB storage implementation for Hangfire (background job system for ASP.NET applications).

PM> Install-Package Hangfire.LiteDB -Version 0.4.1 -Source https://www.myget.org/F/hangfire-litedb/api/v3/index.json

Copy to clipboard

> nuget.exe install Hangfire.LiteDB -Version 0.4.1 -Source https://www.myget.org/F/hangfire-litedb/api/v3/index.json

Copy to clipboard

> dotnet add package Hangfire.LiteDB --version 0.4.1 --source https://www.myget.org/F/hangfire-litedb/api/v3/index.json

Copy to clipboard
<PackageReference Include="Hangfire.LiteDB" Version="0.4.1" />
Copy to clipboard
source https://www.myget.org/F/hangfire-litedb/api/v3/index.json

nuget Hangfire.LiteDB  ~> 0.4.1
Copy to clipboard

> choco install Hangfire.LiteDB --version 0.4.1 --source https://www.myget.org/F/hangfire-litedb/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "hangfire-litedb" -SourceLocation "https://www.myget.org/F/hangfire-litedb/api/v2"
Install-Module -Name "Hangfire.LiteDB" -RequiredVersion "0.4.1" -Repository "hangfire-litedb" 
Copy to clipboard

Hangfire.LiteDB

NuGet Badge MyGet Pre Release

Build Status

Platform Master
Windows Build status
Linux / OS X Build Status

Overview

LiteDB job storage for Hangfire

Usage

This is how you connect to an litedb instance

GlobalConfiguration.Configuration.UseLiteDbStorage();

To enqueue a background job you must have the following in the code somewhere at least once or the background job queue will not process

var client = new BackgroundJobServer();
\\then you can do this, which runs once
BackgroundJob.Enqueue(() => Console.WriteLine("Background Job: Hello, world!"));

Delayed tasks

Scheduled background jobs are being executed only after given amount of time.

BackgroundJob.Schedule(() => Console.WriteLine("Reliable!"), TimeSpan.FromDays(7));

Recurring tasks

Recurring jobs were never been simpler, just call the following method to perform any kind of recurring task using the CRON expressions.

RecurringJob.AddOrUpdate(() => Console.WriteLine("Transparent!"), Cron.Daily);

Continuations

Continuations allow you to define complex workflows by chaining multiple background jobs together.

var id = BackgroundJob.Enqueue(() => Console.WriteLine("Hello, "));
BackgroundJob.ContinueWith(id, () => Console.WriteLine("world!"));

License

Hangfire.LiteDB is released under the MIT License.

Known Bugs

  • UTC Time Zone and Local Time Zone is confusing.

0.4.1 - Fix memory leak @danzhik

  • .NETFramework 4.5
    • HangFire.Core (>= 1.7.16)
    • LiteDB (>= 5.0.9)
    • Newtonsoft.Json (>= 12.0.3)
  • .NETStandard 2.0
    • HangFire.Core (>= 1.7.16)
    • LiteDB (>= 5.0.9)
    • Newtonsoft.Json (>= 12.0.3)
  • .NETFramework 4.5: 4.5.0.0
  • .NETStandard 2.0: 2.0.0.0

Owners

codeyu

Authors

codeyu

Project URL

https://github.com/codeyu/Hangfire.LiteDB

License

Unknown

Tags

Hangfire AspNet OWIN LiteDB Long-Running Background Fire-And-Forget Delayed Recurring Tasks Jobs Scheduler Threading Queues

Info

563 total downloads
76 downloads for version 0.4.1
Download (83.99 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
0.4.1 83.99 KB Sun, 03 Oct 2021 13:52:44 GMT 76
0.4.0 83.99 KB Tue, 14 Sep 2021 08:31:10 GMT 68
0.3.1 83.86 KB Fri, 16 Oct 2020 01:33:58 GMT 57
0.3.0 83.87 KB Sat, 28 Dec 2019 05:58:52 GMT 55
0.2.1 82.62 KB Fri, 01 Nov 2019 12:56:17 GMT 68
0.2.0 82.91 KB Fri, 20 Sep 2019 13:45:26 GMT 82
0.1.1 82.91 KB Tue, 17 Sep 2019 14:59:02 GMT 85
0.1.1-beta-0001 80.51 KB Thu, 07 Feb 2019 01:37:49 GMT 72