|Linux / OS X|
LiteDB job storage for Hangfire
This is how you connect to an litedb instance
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!"));
Scheduled background jobs are being executed only after given amount of time.
BackgroundJob.Schedule(() => Console.WriteLine("Reliable!"), TimeSpan.FromDays(7));
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 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!"));
Hangfire.LiteDB is released under the MIT License.
UTC Time Zone and Local Time Zone is confusing.