LiteDB storage for Hangfire.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode update csproj Aug 19, 2017
samples update lib Oct 3, 2017
src/Hangfire.LiteDB test myget Nov 12, 2017
test/Hangfire.LiteDB.Test Fix test project Nov 10, 2017
.gitignore add test Aug 27, 2017
.travis.yml test travis Nov 12, 2017
Build.ps1 update lib Oct 3, 2017
Hangfire.LiteDB.sln build success Aug 21, 2017
LICENSE Initial commit Aug 18, 2017
README.md add pre ci Nov 12, 2017
appveyor.yml fix appveyor.yml Nov 12, 2017

README.md

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.