{"id":20130438,"url":"https://github.com/ravendb/quartznet-ravendb","last_synced_at":"2025-04-09T16:14:02.558Z","repository":{"id":41852871,"uuid":"56046467","full_name":"ravendb/quartznet-RavenDB","owner":"ravendb","description":"RavenDB JobStore support for Quartz.NET scheduler.","archived":false,"fork":false,"pushed_at":"2022-06-06T15:09:55.000Z","size":267,"stargazers_count":27,"open_issues_count":6,"forks_count":19,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T16:13:57.108Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ravendb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-12T08:48:17.000Z","updated_at":"2023-09-08T17:09:08.000Z","dependencies_parsed_at":"2022-08-11T19:30:53.755Z","dependency_job_id":null,"html_url":"https://github.com/ravendb/quartznet-RavenDB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravendb%2Fquartznet-RavenDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravendb%2Fquartznet-RavenDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravendb%2Fquartznet-RavenDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravendb%2Fquartznet-RavenDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ravendb","download_url":"https://codeload.github.com/ravendb/quartznet-RavenDB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065282,"owners_count":21041872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T20:38:39.118Z","updated_at":"2025-04-09T16:14:02.529Z","avatar_url":"https://github.com/ravendb.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quartz.NET-RavenDB\n\nJobStore implementation for Quartz.NET scheduler using RavenDB.\n\n## About\n\n[Quartz.NET](https://github.com/quartznet/quartznet) is a full-featured, open source job scheduling system that can be used from smallest apps to large scale enterprise systems.\n\n[Quartz.NET on RavenDB](https://github.com/ravendb/quartznet-RavenDB) is a new provider written for Quartz.NET which lets us use the [RavenDB](https://ravendb.net/features) NoSQL database as the persistent Job Store for scheduling data (instead of the SQL solutions that are built-in Quartz.NET).\n\n## Installation\n\nFirst add scheduling to your app using Quartz.NET ([example](http://www.quartz-scheduler.net/documentation/quartz-2.x/quick-start.html)).\nThen install the NuGet [package](https://www.nuget.org/packages/Quartz.Impl.RavenDB/).\n\n## Configuration \u0026 Usage\n\n### .NET Framework\n\nIn your code, where you would have [normally configured](https://www.quartz-scheduler.net/documentation/quartz-3.x/tutorial/job-stores.html) Quartz to use a persistent job store, you must add the following configuration properties:\n\n```csharp\n// In your application where you want to setup the scheduler:\nNameValueCollection properties = new NameValueCollection\n{\n    // Normal scheduler properties\n    [\"quartz.scheduler.instanceName\"] = \"TestScheduler\",\n    [\"quartz.scheduler.instanceId\"] = \"instance_one\",\n    [\"quartz.threadPool.type\"] = \"Quartz.Simpl.SimpleThreadPool, Quartz\",\n    [\"quartz.threadPool.threadCount\"] = \"1\",\n    [\"quartz.threadPool.threadPriority\"] = \"Normal\",\n\n    // RavenDB JobStore property\n    [\"quartz.jobStore.type\"] = \"Quartz.Impl.RavenDB.RavenJobStore, Quartz.Impl.RavenDB\"\n    // RavenDB Default Database name\n    [\"quartz.jobStore.database\"] = \"QuartzDemo\",\n    // One or more URLs to database server\n    [\"quartz.jobStore.urls\"] = \"[\\\"http://live-test.ravendb.net\\\"]\",\n    // If you use authentication, specify certificate and password\n    //[\"quartz.jobStore.certPath\"] = \"My/Cert/path.pfx\",\n    //[\"quartz.jobStore.certPass\"] = \"SuperSecret\",\n};\n\n// Init scheduler with the desired configuration properties\nISchedulerFactory sf = new StdSchedulerFactory(properties);\nIScheduler scheduler = sf.GetScheduler();\n```\n\n### .NET Core\n\nFor use in .NET Core Workers or ASP.NET Core use the recommended Fluent API when setting up a Quartz in `ConfigureServices` like:\n\n```csharp\nvar configuration = new ConfigurationBuilder()\n                        .AddJsonFile(\"appsettings.json\")\n                        .Build();\n\nvar section = configuration.GetSection(\"MyService\");\nvar config = section.Get\u003cMyServiceConfig\u003e();\n\nservices.AddQuartz(q =\u003e\n    {\n        q.UseMicrosoftDependencyInjectionJobFactory();\n\n        q.UseDefaultThreadPool(tp =\u003e\n        {\n            tp.MaxConcurrency = 10;\n        });\n\n        q.UsePersistentStore(s =\u003e\n        {\n            s.UseRavenDb(options =\u003e\n            {\n                options.Urls = config.QuartzRavenStore.Urls;\n                options.Database = config.QuartzRavenStore.DatabaseName;\n                // specify certificate, if necessary\n            });\n\n            s.UseJsonSerializer();\n        });\n        \n        // Add jobs and triggers as you wish\n    }\n);\n\nservices.AddQuartzHostedService(\n    q =\u003e q.WaitForJobsToComplete = true);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravendb%2Fquartznet-ravendb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fravendb%2Fquartznet-ravendb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravendb%2Fquartznet-ravendb/lists"}