Quartz.Spi.CosmosDbJobStore
1.1.0
dotnet add package Quartz.Spi.CosmosDbJobStore --version 1.1.0
NuGet\Install-Package Quartz.Spi.CosmosDbJobStore -Version 1.1.0
<PackageReference Include="Quartz.Spi.CosmosDbJobStore" Version="1.1.0" />
paket add Quartz.Spi.CosmosDbJobStore --version 1.1.0
#r "nuget: Quartz.Spi.CosmosDbJobStore, 1.1.0"
// Install Quartz.Spi.CosmosDbJobStore as a Cake Addin #addin nuget:?package=Quartz.Spi.CosmosDbJobStore&version=1.1.0 // Install Quartz.Spi.CosmosDbJobStore as a Cake Tool #tool nuget:?package=Quartz.Spi.CosmosDbJobStore&version=1.1.0
CosmosDb Job Store for Quartz.NET
![Downloads](https://img.shields.io/nuget/dt/Quartz.Spi.CosmosDbJobStore.svg)
We have created this project to allow clustered Quartz.NET store jobs into CosmosDb. It is more or less port of Quartz.NET MongoDb Job Store.
Basic Usage
var properties = new NameValueCollection();
properties[StdSchedulerFactory.PropertySchedulerInstanceName] = instanceName;
properties[StdSchedulerFactory.PropertySchedulerInstanceId] = $"{Environment.MachineName}-{Guid.NewGuid()}";
properties[StdSchedulerFactory.PropertyJobStoreType] = typeof(CosmosDbJobStore).AssemblyQualifiedName;
properties[$"{StdSchedulerFactory.PropertyObjectSerializer}.type"] = "json";
properties[$"{StdSchedulerFactory.PropertyJobStorePrefix}.Endpoint"] = "https://localhost:8081/";
properties[$"{StdSchedulerFactory.PropertyJobStorePrefix}.Key"] = "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==";
properties[$"{StdSchedulerFactory.PropertyJobStorePrefix}.DatabaseId"] = "quartz-demo";
properties[$"{StdSchedulerFactory.PropertyJobStorePrefix}.CollectionId"] = "Quartz";
properties[$"{StdSchedulerFactory.PropertyJobStorePrefix}.Clustered"] = "true";
var scheduler = new StdSchedulerFactory(properties);
return scheduler.GetScheduler();
Collection partition key
By default Cosmos DB collection partitioned by PropertySchedulerInstanceName
, instead entity type (e.g. 'Trigger', 'JobDetails') can be used as the partition key.
properties[$"{StdSchedulerFactory.PropertyJobStorePrefix}.{nameof(CosmosDbJobStore.PartitionPerEntityType)}"] = "true";
ConnectionMode
By default the Cosmos DB connectionMode is Direct
, instead Gateway
can be used as connectionMode.
properties[$"{StdSchedulerFactory.PropertyJobStorePrefix}.ConnectionMode"] = ((int)ConnectionMode.Gateway).ToString();
Nuget
Install-Package Quartz.Spi.CosmosDbJobStore
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Common.Logging (>= 3.4.1)
- Microsoft.Azure.Cosmos (>= 3.17.1)
- Newtonsoft.Json (>= 13.0.3)
- Quartz (>= 3.6.2)
- Quartz.Serialization.Json (>= 3.6.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.0 | 34,837 | 3/15/2023 |
1.0.4 | 538 | 11/8/2022 |
1.0.3 | 8,595 | 10/26/2021 |
1.0.2 | 404 | 4/14/2021 |
1.0.1 | 2,949 | 3/23/2021 |
1.0.0 | 470 | 2/22/2021 |
0.7.2 | 502 | 1/13/2021 |
0.7.1 | 1,615 | 6/12/2020 |
0.7.0 | 587 | 6/9/2020 |
0.6.0 | 1,245 | 5/16/2019 |
0.5.5 | 753 | 5/10/2019 |
0.5.4 | 715 | 3/20/2019 |
0.5.3 | 807 | 2/5/2019 |
0.5.2 | 815 | 12/17/2018 |
0.5.1 | 876 | 10/15/2018 |
0.5.0 | 892 | 10/5/2018 |
Updated Quartz packages to ver. 3.6.2. Implemented ResetTriggerFromErrorState. License switched to MIT.