Hangfire.Oracle.Core
1.0.1
See the version list below for details.
dotnet add package Hangfire.Oracle.Core --version 1.0.1
NuGet\Install-Package Hangfire.Oracle.Core -Version 1.0.1
<PackageReference Include="Hangfire.Oracle.Core" Version="1.0.1" />
paket add Hangfire.Oracle.Core --version 1.0.1
#r "nuget: Hangfire.Oracle.Core, 1.0.1"
// Install Hangfire.Oracle.Core as a Cake Addin #addin nuget:?package=Hangfire.Oracle.Core&version=1.0.1 // Install Hangfire.Oracle.Core as a Cake Tool #tool nuget:?package=Hangfire.Oracle.Core&version=1.0.1
Hangfire.Oracle.Core Implementation
Hangfire.Oracle.Core is based on Hangfire.MySqlStorage(https://github.com/arnoldasgudas/Hangfire.MySqlStorage)
I fix some bug and support .net standard 2.0
Oracle storage implementation of Hangfire - fire-and-forget, delayed and recurring tasks runner for .NET. Scalable and reliable background job runner. Supports multiple servers, CPU and I/O intensive, long-running and short-running jobs.
Some features of Oracle storage implementation is under development!
Installation
Install Oracle
Run the following command in the NuGet Package Manager console to install Hangfire.Oracle.Core:
Install-Package Hangfire.Oracle.Core
Usage
Use one the following ways to initialize OracleStorage
:
- Create new instance of
OracleStorage
with connection string constructor parameter and pass it toConfiguration
withUseStorage
method:
GlobalConfiguration.Configuration.UseStorage(
new OracleStorage(connectionString));
- Alternatively one or more options can be passed as a parameter to
OracleStorage
:
GlobalConfiguration.Configuration.UseStorage(
new OracleStorage(
connectionString,
new OracleStorageOptions
{
TransactionIsolationLevel = IsolationLevel.ReadCommitted,
QueuePollInterval = TimeSpan.FromSeconds(15),
JobExpirationCheckInterval = TimeSpan.FromHours(1),
CountersAggregateInterval = TimeSpan.FromMinutes(5),
PrepareSchemaIfNecessary = true,
DashboardJobListLimit = 50000,
TransactionTimeout = TimeSpan.FromMinutes(1),
SchemaName = "HANGFIRE"
}));
Description of optional parameters:
TransactionIsolationLevel
- transaction isolation level. Default is read committed. Didn't test with other options!QueuePollInterval
- job queue polling interval. Default is 15 seconds.JobExpirationCheckInterval
- job expiration check interval (manages expired records). Default is 1 hour.CountersAggregateInterval
- interval to aggregate counter. Default is 5 minutes.PrepareSchemaIfNecessary
- if set totrue
, it creates database tables. Default istrue
.DashboardJobListLimit
- dashboard job list limit. Default is 50000.TransactionTimeout
- transaction timeout. Default is 1 minute.SchemaName
- schema name. Default is empty
How to limit number of open connections
Number of opened connections depends on Hangfire worker count. You can limit worker count by setting WorkerCount
property value in BackgroundJobServerOptions
:
app.UseHangfireServer(
new BackgroundJobServerOptions
{
WorkerCount = 1
});
More info: http://hangfire.io/features.html#concurrency-level-control
Dashboard
Hangfire provides a dashboard More info: Hangfire Overview
Build
Please use Visual Studio or any other tool of your choice to build the solution
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
- Dapper (>= 1.50.5)
- Hangfire.Core (>= 1.6.20)
- Microsoft.CSharp (>= 4.5.0)
- Newtonsoft.Json (>= 11.0.2)
- Oracle.ManagedDataAccess.Core (>= 2.12.0-beta3)
NuGet packages (11)
Showing the top 5 NuGet packages that depend on Hangfire.Oracle.Core:
Package | Downloads |
---|---|
EaCloud.Hangfire
EaCloud Hangfire 后台任务组件,封装基于 Hangfire 后台任务的服务端实现。 |
|
Eaf.HangFire.AspNetCore
Enterprise Application Foundation - AspNetCore -HangFire |
|
BizDoc.Core.Oracle
Oracle storage for BizDoc |
|
MicroCloud.Hangfire
MicroCloud Hangfire 后台任务组件,封装基于 Hangfire 后台任务的服务端实现。 |
|
Harpy.Oracle
Oracle extension to the presentation layer of the Harpy Framework |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Hangfire.Oracle.Core:
Repository | Stars |
---|---|
gnsilence/HangfireHttpJob
hangfire的拓展程序,在原作者基础上增加了一些功能,调用api的方式来执行定时任务
|