Bump Hangfire.AspNetCore from 1.7.25 to 1.8.21 #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updated Hangfire.AspNetCore from 1.7.25 to 1.8.21.
Release notes
Sourced from Hangfire.AspNetCore's releases.
1.8.21
Release Notes
Hangfire.Core
FailedState.IncludeFileInfo
to optionally show/hide line numbers in exceptions in Failed state.BackgroundJob
class always acquires the most currentJobStorage.Current
instance.RecurringJob
class always acquires the most currentJobStorage.Current
instance.Hangfire.SqlServer
SqlServerStorageOptions.DisableTransactionScope
option for .NET Framework targets.1.8.20
Release Notes
Hangfire.Core
1.8.19
Release Notes
Hangfire.Core
Hangfire.SqlServer
1.8.18
Release Notes
Hangfire.Core
DashboardOptions.ServerPossiblyAbortedThreshold
to configure a custom threshold for "possibly aborted" warnings.CultureInfo
-related differences after upgrading to 1.8.15–1.8.17.AsyncLocal
values from synchronous background job methods.Job.Args
property to theJob
class' constructor.cshtml
files working on newer platforms.Hangfire.AspNetCore
ObjectDisposedException
in theStopAsync
method.NullReferenceException
whenLocalIpAddress
orRemoteIpAddress
is null.1.8.17
Release Notes
Hangfire.SqlServer
InvalidCastException
while fetching a job with older schemas regression from 1.8.16.1.8.16
Release Notes
Hangfire.Core
IServerFilter
implementations.ExceptionDetails
property of a FailedState instance.CancellationEvent
usage instead ofCancellationToken.WaitHandle
.BackgroundJobStateChanger
implementation.net451
platform when using .NET 9.0.RecurringJobSchedulerFacts
class.Microsoft.CodeAnalysis.NetAnalyzers
package to version 9.0.0.Hangfire.SqlServer
SqlServerJobQueue
implementation.LockTimeout
time when calling thesp_getapplock
procedure to 1 second for less blocking.net6.0
platform.PoolBlockingPeriod
setting on AppVeyor to handle transient test failures.1.8.15
Release Notes
Hangfire.Core
AutomaticRetryAttribute.ExceptOn
property to skip retries for specific exceptions.GetCultureInfo
instead of creating an instance in theCaptureCultureAttribute
filter.build.bat
command.Hangfire.SqlServer
string
allocations.QuerySingle
* orReadSingle
* where possible to avoid allocating lists.DbCommand
andDbParameter
creation logic to improve code consistency.1.8.14
Release Notes
Hangfire.Core
InvocationData
to produce less strings.JobFilter
-related logic to show up in profilers.IProfiler
to be less allocatey for diagnostic purposes that almost never run.CancellationToken.WaitHandle
again, since early .NET Core days are gone.IStateHandler
collections in a state machine.KeyNotFoundException
when recurring job is malformed.UrlHelper.To
for OWIN-based Dashboard UI (by @LordJZ).Hangfire.SqlServer
1.8.12
Release Notes
Hangfire.Core
MaxDegreeOfParallelismForSchedulers
experimental server option if supported by storage.AddOrUpdate
.AddOrUpdate
triggers execution of a recurring job, even if its next execution is in the future.Hangfire.SqlServer
InvocationData
andLoadException
properties inJobDetails
method results.1.8.11
Release Notes
Hangfire.Core
1.8.10
Release Notes
Hangfire.Core
Hangfire.AspNetCore
HasStarted
inResponse.WriteAsync
to avoid breaking dispatchers.Hangfire.SqlServer
netstandard2.0
platform to version 2.1.28.net451
andnetstandard1.3
platforms to version 1.60.6.Hangfire.Core, Hangfire.NetCore, Hangfire.AspNetCore, Hangfire.SqlServer, Hangfire.SqlServer.Msmq
HangfireIO
as a package owner.1.8.9
Release Notes
Please note that version 1.8.8 was unlisted on NuGet because of broken package references.
Hangfire.Core
Environment.MachineName
as a server name if other environment vars aren't available.NullReferenceException
on the Deleted Jobs page (regression from 1.8.7).net6.0
platform.Hangfire.SqlServer
net6.0
platform.Hangfire.NetCore
Hangfire.AspNetCore
1.8.7
Release Notes
Hangfire.Core
@hourly
for recurring jobs (by @MuhamedAbdalla).NullReferenceException
from the Scheduled Jobs page when there's a job with missing data.NullReferenceException
from the Processing Jobs page when there's a job with missing data.netcoreapp1.0
andnetcoreapp2.1
targets since they aren't supported in AppVeyor.net6.0
target for unit tests instead of the removed ones.Hangfire.SqlServer
netcoreapp1.0
andnetcoreapp2.1
targets since they aren't supported in AppVeyor.net6.0
target for unit tests instead of the removed ones.1.8.6
Release Notes
Hangfire.Core
EditorBrowsableAttribute(Never)
.AutomaticRetryAttribute
class from JSON.CurrentCulture
instead ofCurrentUICulture
when displaying time.Hangfire.SqlServer
DbCommand
resource leak when releasing a lock detected by static analysis.Hangfire.NetCore
1.8.5
Release Notes
Hangfire.Core
FaviconPath
onDashboardOptions
(by @cezar-pimentel).AutomaticRetryAttribute
filter to JSON.Hangfire.SqlServer
Schema 5
.1.8.4
Release Notes
Hangfire.Core
PerformContext.ServerId
property available in filters.Hangfire.NetCore
ObjectDisposedException
.IHostedService
implementations can block Hangfire server from being stopped.1.8.3
Release Notes
Hangfire.Core
MaxLinesInStackTrace
for a particularFailedState
instance.DisableConcurrentExecutionAttribute
andLatencyTimeoutAttribute
serializable.1.8.2
Release Notes
Hangfire.Core
Hangfire.SqlServer
InvalidOperationException
with new dashboard metrics when a database has multiple data/log files.1.8.1
Release Notes
Hangfire.Core
MisfireHandlingMode.Ignorable
to avoid scheduling recurring jobs on missed schedules.DashboardOptions.DarkModeEnabled
property.WithJobExpirationTimeout
configuration method.UseDefaultCulture
configuration method overloads.UseDashboardStylesheet
andUseJobDetailsRenderer
configuration methods.state-card-state-active
color is not very dark (by @coolhome).Hangfire.SqlServer
forceseek
table hint whenever possible to avoid performance drops.Hangfire.NetCore
net461
target for Hangfire.NetCore package to avoid missing method exceptions.1.8.0
Release Notes
Please see more human-friendly release notes in our blog https://www.hangfire.io/blog/2023/04/28/hangfire-1.8.0.html. Please see https://docs.hangfire.io/en/latest/upgrade-guides/upgrading-to-hangfire-1.8.html to learn how to upgrade.
Hangfire.Core
NET45
platform target in favor of theNET451
target to support Visual Studio 2022.Job.Queue
property, so jobs now can have their own queue specified.IBackgroundJobClient.Create
method overloads with the newqueue
parameter.AutomaticRetryAttribute
by using the newOnlyOn
property.DeletedState
now has the persistedException
property populated after a failure.JobContinuationOptions.OnlyOnDeletedState
to create continuations after a failure.Exception
job parameter is passed to continuation whenUseResultsInContinuations
method is used.FromExceptionAttribute
to deal with an antecedent exception in a background job continuation.JobContinuationOptions
values for a continuation.BackgroundJobServerOptions.IsLightweightServer
option to run a server with no storage processes.DisableConcurrentExecution
filter.ServerId
toFailedState
instances to simplify the debugging on different servers.MisfireHandlingMode.Strict
to create a job for each missed recurring job occurrence.UseDefaultCulture
configuration method.captureDefault
parameter in theCaptureCulture
filter.IGlobalConfiguration.UseFilterProvider
extension method to unify the configuration.Remove
method forJobFilterCollection
to remove global filters based on their type.CompatibilityLevel.Version_180
flag to avoid storing culture parameters when they are the same as the default ones.Transaction.CreateJob
feature is supported by the storage.DeletedState
instead ofSucceededState
when its invocation was canceled by a filter.CurrentCulture
parameter whenCurrentUICulture
one is missing.BackgroundJobServerOptions.StopTimeout
to 500 ms.AddOrUpdate
overloads with optional params defined in theRecurringJobManagerExtensions
class.AddOrUpdate
overloads with optional parameters defined in theRecurringJob
class.AddOrUpdate
method overloads with norecurringJobId
parameter.RecurringJobOptions.QueueName
property, new methods should be used instead.NET45
platform target in favor ofNET451
target to support Visual Studio 2022.Dashboard UI
DashboardRoutes
class.DefaultRecordsPerPage
property on theDashboardOptions
class (by @PaulARoy).IGlobalConfiguration.UseJobDetailsRenderer
method for custom renderers for the Job Details page.IGlobalConfiguration.UseDashboardMetrics
extension method to pass multiple metrics at once.DeletedState
to display its new exception property.MonitoringApi
methods for the Awaiting Jobs page.... (truncated)
1.8.0-rc4
Release Notes
Hangfire.Core
DefaultRecordsPerPage
property on theDashboardOptions
class (by @PaulARoy).Hangfire.NetCore
ObjectDisposedException
when hosted service disposed twice.Hangfire.SqlServer
Schema 9
migration that creates index for theState.CreatedAt
column.InactiveStateExpirationTimeout
is set.DefaultQueueProvider
option to specify a custom default queue provider.1.8.0-rc3
Release Notes
Please see release notes in our blog – https://www.hangfire.io/blog/2023/03/30/hangfire-1.8.0-rc3.html.
Hangfire.Core
captureDefault
parameter in theCaptureCulture
filter.StatisticsDto.Awaiting
for monitoring stats.JobStorageFeatures
class to avoid using magic strings in storage features.captureDefault
when dealing with default cultures instead of compatibility level.SetContains
toGetSetContains
for consistency.Monitoring.AwaitingJobs
feature.BatchedGetFirstByLowest
feature.NotSupportedException
from new storage methodsJobStorageMonitor
virtual, not abstract.Job.Queue
feature not supported.AttemptsExceededAction.Delete
option by default in the global automatic retry filter.Hangfire.SqlServer
Monitoring.AwaitingJobs
feature for SQL storage.Transaction.AcquireDistributedLock
feature.GetSetCount.Limited feature
.GetSetContains feature
.1.8.0-rc2
Release Notes
Hangfire.Core
UseDefaultCulture
configuration method.CompatibilityLevel.Version_180
flag to avoid storing culture parameters when they are the same as default.BackgroundJobServerOptions.IsLightweightServer
option to run server with no storage processes.CurrentCulture
parameter whenCurrentUICulture
one is missing.Hangfire.SqlServer
Hangfire.NetCore
net451
andnetstandard1.3
targets for the package.netstandard2.1
target instead ofnetcoreapp3.0
for the package.Hangfire.AspNetCore
1.8.0-rc1
Release Notes
Hangfire.Core
Job.Queue
property, so jobs now can have their own queue specified.IBackgroundJobClient.Create
method overloads with the newqueue
parameter.JobContinuationOptions.OnlyOnDeletedState
to create continuations after a failure.JobContinuationOptions
values for a continuation.DisableConcurrentExecution
filter.ServerId
toFailedState
instances to simplify the debugging on different servers.MisfireHandlingMode.Strict
to create job for each missed recurring job occurrence.DeletedState
now have the persistedException
property populated after a failure.Exception
job parameter is passed to continuation whenUseResultsInContinuations
method is used.FromExceptionAttribute
to deal with an antecedent exception in a background job continuation.AutomaticRetryAttribute
by using the newOnlyOn
property.Remove
method forJobFilterCollection
to remove global filters based on their type.IGlobalConfiguration.UseFilterProvider
extension method to unify the configuration.AttemptsExceededAction.Delete
option by default in the global automatic retry filter.BackgroundJobServerOptions.StopTimeout
to 500 ms.DeletedState
instead ofSucceededState
when its invocation was canceled by a filter.AddOrUpdate
overloads with optional params defined in theRecurringJobManagerExtensions
class.AddOrUpdate
overloads with optional parameters defined in theRecurringJob
class.AddOrUpdate
method overloads with norecurringJobId
parameter.RecurringJobOptions.QueueName
property, new methods should be used instead.NET45
platform target in favor ofNET451
target to support Visual Studio 2022.Dashboard UI
UseDarkModeSupportForDashboard
method (by @danillewin).DashboardRoutes
class.IGlobalConfiguration.UseJobDetailsRenderer
method for custom renderers for Job Details page.IGlobalConfiguration.UseDashboardMetrics
extension method to pass multiple metrics at once.DeletedState
to display its new exception property.default
one.Extensibility
Factory
,StateMachine
andPerformer
properties to context classes to avoid injecting services.ApplyStateContext
andElectStateContext
instances.... (truncated)
1.8.0-beta4
Release Notes
Hangfire.Core
UseDarkModeSupportForDashboard
method.DashboardRoutes
class.DisableConcurrentExecutionAttribute
.BackgroundJobServerOptions.StopTimeout
to 500 ms.Hangfire.SqlServer
TryAutoDetectSchemaDependentOptions
option to automatically enable options based on schema.GetJobData
now populatesJobData.ParametersSnapshot
property to avoid additional round-trips.QueuePollInterval
is set to zero now defaults to 200 ms.UsePageLocksOnDequeue
option is now obsolete and doesn't affect anything.1.8.0-beta3
Release Notes
Hangfire.Core
Job.Queue
property, so jobs now can have their own queue specified.IBackgroundJobClient.Create
method overloads with the newqueue
parameter.JobStorageConnection.SetContains
method.ServerId
toFailedState
instances to simplify the debugging on different servers.default
one.TaskExtensions.WaitOneAsync
only with theRegisterWaitForSingleObject
method.null
value before passing it to renderers (regression).AddOrUpdate
overloads with optional params defined in theRecurringJobManagerExtensions
class.AddOrUpdate
overloads with optional parameters defined in theRecurringJob
class.AddOrUpdate
method overloads with norecurringJobId
parameter.RecurringJobOptions.QueueName
property, new methods should be used instead.Hangfire.SqlServer
Connection.GetUtcDateTime
feature to make work new changes in schedulers.1.8.0-beta2
Release Notes
Hangfire.Core
MisfireHandlingMode.Strict
to create job for each missed recurring job occurrence.JobContinuationOptions
for a continuation.CreateJob
method to theJobStorageTransaction
abstract class.SetJobParameter
method to theJobStorageTransaction
abstract class.JobContinuationOptions
enum into flags while still possible.FromParameter
attribute.OnlyOnDeletedState
option.Hangfire.SqlServer
QueuePollInterval
option toTimeSpan.Zero
.UseRecommendedIsolationLevel
option by default.1.8.0-beta1
Release Notes
Hangfire.Core
DeletedState
now have the persistedException
property.JobContinuationOptions.OnlyOnDeletedState
to create continuations after a failure.Exception
job parameter is passed to continuation whenUseResultsInContinuations
method is used.FromExceptionAttribute
to deal with an antecedent exception in a background job continuation.AutomaticRetryAttribute
by using the newOnlyOn
property.IBackgroundProcess.UseBackgroundPool
now allows to pass thread configuration logic.IGlobalConfiguration.UseJobDetailsRenderer
method for custom renderers.BackgroundJobServerOptions.WorkerThreadConfigurationAction
optionApplyStateContext
andElectStateContext
instances.IGlobalConfiguration.UseDashboardMetrics
extension method to pass multiple metrics at once.DeletedState
to display its new exception property.JobStorage.GetReadOnlyConnection
method intended to returnJobStorageConnection
for replicas.JobStorage.HasFeature
method for querying optional features.GetSetCount
andGetUtcDateTime
methods for theJobStorageConnection
class.AcquireDistributedLock
andRemoveFromQueue
methods for theJobStorageTransaction
class.Factory
,StateMachine
andPerformer
properties to context classes to avoid injecting services.ParametersSnapshot
property forBackgroundJob
andJobData
classes to minimize roundtrips in future.AttemptsExceededAction.Delete
option by default in the global automatic retry filter.DeletedState
instead ofSucceededState
when its invocation was canceled by a filter.FromParameterAttribute
-based logic now always overwrites arguments, even with non-null values.JobFilterAttribute
instance to decrease sizeServerHeartbeatProcess
now usesThreadPriority.AboveNormal
to prioritize heartbeats.Hangfire.SqlServer
JobQueue.Id
column to usebigint
type.SqlServerStorageOptions.PreferMicrosoftDataSqlClient
option to use the corresponding package.SqlServerStorage.SchemaVersion
metric for Dashboard UI.UseTransactionalAcknowledge
option).Hangfire.NetCore and Hangfire.AspNetCore
IApplicationBuilder.UseHangfireServer
that accepts custom factory forIBackgroundProcessingServer
.1.7.37
Release Notes
AddOrUpdate
(backported).AddOrUpdate
triggers execution of a recurring job, even if its next execution is in the future (backported).1.7.36
Release Notes
Hangfire.Core
Hangfire.NetCore and Hangfire.AspNetCore
null
in hosted service to avoidObjectDisposedException
.1.7.35
Release Notes
Hangfire.SqlServer
1.7.34
Release Notes
Hangfire.Core
BackgroundJob
andIBackgroundJobClient
(by @chrischu).ArgumentNullException
with tricky generic type with inheritance case for jobs.1.7.33
Release Notes
Hangfire.SqlServer
MinPollingDelayMs
for SQL Server to 100 milliseconds.Hangfire.AspNetCore
IAsyncDisposable
forIServiceScope
instances for newer .NET platforms.1.7.32
Release Notes
Hangfire.Core
JobStorage.Current
is not initialized.TypeHelperSerializationBinder
class public to use it from custom serializer settings.IJobCancellationToken
interface method (by @judah4).Hangfire.NetCore and Hangfire.AspNetCore
AddHangfireServer
.null
as result ofStopAsync
in hosted service implementation (by @tomaszek92).1.7.31
Release Notes
Hangfire.Core
RecurringJob.TriggerJob
method that returns identifier of a triggered background job.RecurringJobManager.TriggerJob
as a replacement for theTriggerExecution
method.RecurringJob
class.RecurringJob.Trigger
method is now obsolete,TriggerJob
is the replacement.RecurringJobManager.TriggerExecution
method is now obsolete,TriggerJob
should be used instead.New Contributors
Full Changelog: HangfireIO/Hangfire@v1.7.30...v1.7.31
1.7.30
Release Notes
SecurityException
as a non-catchable one.AspNetShutdownDetector
to avoid depending on thread pool.AspNetShutdownDetector
's check intervals to detect shutdowns earlier.1.7.29
Release Notes
Hangfire.Core
RecurringJobManager.TriggerExecution
method that returns identifier of a created job.GetRecurringJobIds
extension method forJobStorageConnection
that returns only identifiers.DashboardMetric.Url
property to make it possible for metrics on the Overview page to be clickable (by @twinmind).DateOnly
andTimeOnly
in .NET 6.0 or other new types in CoreLib.OutOfMemoryException
orStackOverflowException
.ManualResetEvent
instance inBackgroundExecution
.Hangfire.SqlServer
1.7.28
Release Notes
Hangfire.Core
BackgroundJobStateChanger
to avoid infinite loops.Hangfire.SqlServer
1.7.27
Release Notes
Hangfire.Core
1.7.26
Security Patch
This security patch fixes a regression appeared in the previous version 1.7.25 that makes Dashboard UI available for remote requests in the default configuration, e.g. when no authentication filter specified. Please note that when custom authentication filter is defined as recommended in the documentation, everything works as expected, but upgrade is recommended in any case. Please read the GHSA-7rq6-7gv8-c37h security advisory for details.
Hangfire.Core
Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)