GithubHelp home page GithubHelp logo

quartznet-mongodb's Introduction

Quartz.NET-MongoDB

Overview

Quartz.NET Quartz.NET is a full-featured, open source job scheduling system that can be used from smallest apps to large scale enterprise systems.

This provider enables MongoDB to be used as the back-end job store via the Official 10gen provider. Hugely inspired by the Elmah-MongoDB project. It is an adaptation of the original "RAMJobStore" with custom BSON serializers.

Usage

The easiest way to add this to a project is via the quartz.impl.mongodb NuGET package which will add the required assemblies to your project.

Configuration

Here is an example web or app config file snippet:

<quartz>
  <add key="quartz.jobStore.type" value="Quartz.Impl.MongoDB.JobStore, Quartz.Impl.MongoDB"/>
</quartz>
<connectionStrings>
  <add name="quartznet-mongodb" connectionString="server=localhost;database=quartznet;"/>
</connectionStrings>

You may want to use the in-code method to configure your scheduler as it is easier in a clustered environment. Remember this will still need to set a valid connection string in web or app config file :

// get a scheduler
NameValueCollection properties = new NameValueCollection();
properties["quartz.scheduler.instanceName"] = "MyApplicationScheduler"; // needed if you plan to use the same database for many schedulers
properties["quartz.scheduler.instanceId"] = System.Environment.MachineName + DateTime.UtcNow.Ticks; // requires uniqueness
properties["quartz.jobStore.type"] = "Quartz.Impl.MongoDB.JobStore, Quartz.Impl.MongoDB";

IScheduler scheduler = new Quartz.Impl.StdSchedulerFactory(properties).GetScheduler();

Changes in version 1.2

  • Updated NuGet dependencies to Quartz 2.0.1 and MongoCSharpDriver 1.5

Changes in version 1.1

  • Respects trigger priority
  • Serializes DateTimeOffset as MongoDB ISODate
  • Fixes DailyCalendar time range exclusion
  • Improves clustered concurrency and large trigger collection management

quartznet-mongodb's People

Contributors

jenrom avatar nanoko avatar ch-lee avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.