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
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. |
.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 | 26,563 | 3/15/2023 |
1.0.4 | 527 | 11/8/2022 |
1.0.3 | 8,534 | 10/26/2021 |
1.0.2 | 398 | 4/14/2021 |
1.0.1 | 2,642 | 3/23/2021 |
1.0.0 | 463 | 2/22/2021 |
0.7.2 | 496 | 1/13/2021 |
0.7.1 | 1,609 | 6/12/2020 |
0.7.0 | 581 | 6/9/2020 |
0.6.0 | 1,239 | 5/16/2019 |
0.5.5 | 747 | 5/10/2019 |
0.5.4 | 709 | 3/20/2019 |
0.5.3 | 798 | 2/5/2019 |
0.5.2 | 809 | 12/17/2018 |
0.5.1 | 866 | 10/15/2018 |
0.5.0 | 882 | 10/5/2018 |
Updated Quartz packages to ver. 3.6.2. Implemented ResetTriggerFromErrorState. License switched to MIT.