Releases: NielsPilgaard/Pilgaard.BackgroundJobs
backgroundjobs-v7.2.2
What's Changed
- Bump softprops/action-gh-release from 1 to 2 by @dependabot in #122
- Deduplicate CronJob Occurrences by @NielsPilgaard in #123
Full Changelog: backgroundjobs-v7.2.0...backgroundjobs-v7.2.2
backgroundjobs-v7.2.1
What's Changed
- Bump softprops/action-gh-release from 1 to 2 by @dependabot in #122
Full Changelog: backgroundjobs-v7.2.0...backgroundjobs-v7.2.1
backgroundjobs-v7.2.0
The BackgroundJobService will now exit early if only IRecurringJob
/IRecurringJobWithInitialDelay
instances are registered. These run on a separate timer, so there's no reason for the BackgroundJobService to poll for background jobs to run.
This reduces resource usage in scenarios where only IRecurringJob
/IRecurringJobWithInitialDelay
instances are registered.
What's Changed
- Bump FluentAssertions.Analyzers from 0.22.0 to 0.23.1 by @dependabot in #92
- Bump Microsoft.NET.Test.Sdk from 17.7.1 to 17.7.2 by @dependabot in #93
- Bump FluentAssertions.Analyzers from 0.23.1 to 0.24.0 by @dependabot in #95
- Bump actions/checkout from 3 to 4 by @dependabot in #94
- Bump OpenTelemetry.Exporter.Console from 1.5.1 to 1.6.0 by @dependabot in #97
- Bump OpenTelemetry.Extensions.Hosting from 1.5.1 to 1.6.0 by @dependabot in #96
- Bump BenchmarkDotNet from 0.13.7 to 0.13.8 by @dependabot in #98
- Bump xunit.runner.visualstudio from 2.5.0 to 2.5.1 by @dependabot in #99
- Bump xunit from 2.5.0 to 2.5.1 by @dependabot in #100
- Bump FluentAssertions.Analyzers from 0.24.0 to 0.25.0 by @dependabot in #101
- Bump BenchmarkDotNet from 0.13.8 to 0.13.9 by @dependabot in #102
- Bump xunit.runner.visualstudio from 2.5.1 to 2.5.3 by @dependabot in #103
- Bump xunit from 2.5.1 to 2.5.2 by @dependabot in #104
- Bump xunit from 2.5.2 to 2.5.3 by @dependabot in #105
- Bump FluentAssertions.Analyzers from 0.25.0 to 0.26.0 by @dependabot in #106
- Bump xunit from 2.5.3 to 2.6.0 by @dependabot in #107
- Bump BenchmarkDotNet from 0.13.9 to 0.13.10 by @dependabot in #108
- Bump xunit from 2.6.0 to 2.6.1 by @dependabot in #109
- Bump Microsoft.NET.Test.Sdk from 17.7.2 to 17.8.0 by @dependabot in #110
- Bump System.Diagnostics.DiagnosticSource from 7.0.2 to 8.0.0 by @dependabot in #115
- Bump Microsoft.SourceLink.GitHub from 1.1.1 to 8.0.0 by @dependabot in #116
- Bump xunit.runner.visualstudio from 2.5.3 to 2.5.4 by @dependabot in #117
- Bump actions/setup-dotnet from 3 to 4 by @dependabot in #119
- Bump xunit from 2.6.1 to 2.6.2 by @dependabot in #118
- Dotnet8 by @NielsPilgaard in #120
- Disable BackgroundJobService when only IRecurringJobs are registered by @NielsPilgaard in #121
Full Changelog: backgroundjobs-v7.1.2...backgroundjobs-v7.2.0
backgroundjobs-v7.1.2
Reworked how RecurringJobs are scheduled for execution. The implementation now uses a timer, and is very reliable.
This PR also introduces 1 new job type: IRecurringJobWithInitialDelay
Use this to implement recurring jobs where you have control over when they execute for the first time. Use TimeSpan.Zero
to have it execute on startup.
Public signature updates:
IBackgroundJobService
now implementsIDisposable
- Two new registration methods for
IRecurringJobWithInitialDelay
- Both constructors for
BackgroundJobRegistration
now takebool isRecurringJob
. It defaults tofalse
- Addition of this interface:
public interface IRecurringJobWithInitialDelay : IRecurringJob
{
TimeSpan InitialDelay { get; }
}
Fixes #86
What's Changed
- Bump System.Diagnostics.DiagnosticSource from 7.0.1 to 7.0.2 by @dependabot in #60
- Bump Shouldly from 4.1.0 to 4.2.0 by @dependabot in #61
- Bump FluentAssertions from 6.10.0 to 6.11.0 by @dependabot in #62
- Bump Shouldly from 4.2.0 to 4.2.1 by @dependabot in #63
- Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.0 by @dependabot in #64
- Bump coverlet.collector from 3.2.0 to 6.0.0 by @dependabot in #65
- Bump FluentAssertions.Analyzers from 0.17.2 to 0.17.3 by @dependabot in #66
- Bump FluentAssertions.Analyzers from 0.17.3 to 0.18.0 by @dependabot in #67
- Bump FluentAssertions.Analyzers from 0.18.0 to 0.19.1 by @dependabot in #68
- Bump Microsoft.NET.Test.Sdk from 17.6.0 to 17.6.1 by @dependabot in #69
- Bump Microsoft.NET.Test.Sdk from 17.6.1 to 17.6.2 by @dependabot in #70
- Bump FluentAssertions.Analyzers from 0.19.1 to 0.20.0 by @dependabot in #74
- Bump OpenTelemetry.Exporter.Console from 1.4.0 to 1.5.1 by @dependabot in #77
- Bump OpenTelemetry.Extensions.Hosting from 1.4.0 to 1.5.1 by @dependabot in #76
- Bump Microsoft.NET.Test.Sdk from 17.6.2 to 17.6.3 by @dependabot in #75
- Bump FluentAssertions.Analyzers from 0.20.0 to 0.21.0 by @dependabot in #78
- Bump xunit from 2.4.2 to 2.5.0 by @dependabot in #79
- Bump xunit.runner.visualstudio from 2.4.5 to 2.5.0 by @dependabot in #80
- Bump BenchmarkDotNet from 0.13.5 to 0.13.6 by @dependabot in #81
- Bump BenchmarkDotNet from 0.13.6 to 0.13.7 by @dependabot in #82
- Bump Microsoft.NET.Test.Sdk from 17.6.3 to 17.7.0 by @dependabot in #83
- Bump FluentAssertions.Analyzers from 0.21.0 to 0.22.0 by @dependabot in #84
- Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.1 by @dependabot in #85
- Bump FluentAssertions from 6.11.0 to 6.12.0 by @dependabot in #87
- Fix RecurringJob schedule inconsistencies by @NielsPilgaard in #91
Full Changelog: backgroundjobs-v7.0.7...backgroundjobs-v7.1.2
backgroundjobs-v7.1.1
Reworked how RecurringJobs are scheduled for execution. The implementation now uses a timer, and is very reliable.
This PR also introduces 1 new job type: IRecurringJobWithInitialDelay
Use this to implement recurring jobs where you have control over when they execute for the first time. Use TimeSpan.Zero
to have it execute on startup.
Public signature updates:
IBackgroundJobService
now implementsIDisposable
- Two new registration methods for
IRecurringJobWithInitialDelay
- Both constructors for
BackgroundJobRegistration
now takebool isRecurringJob
. It defaults tofalse
- Addition of this interface:
public interface IRecurringJobWithInitialDelay : IRecurringJob
{
TimeSpan InitialDelay { get; }
}
Fixes #86
What's Changed
- Bump System.Diagnostics.DiagnosticSource from 7.0.1 to 7.0.2 by @dependabot in #60
- Bump Shouldly from 4.1.0 to 4.2.0 by @dependabot in #61
- Bump FluentAssertions from 6.10.0 to 6.11.0 by @dependabot in #62
- Bump Shouldly from 4.2.0 to 4.2.1 by @dependabot in #63
- Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.0 by @dependabot in #64
- Bump coverlet.collector from 3.2.0 to 6.0.0 by @dependabot in #65
- Bump FluentAssertions.Analyzers from 0.17.2 to 0.17.3 by @dependabot in #66
- Bump FluentAssertions.Analyzers from 0.17.3 to 0.18.0 by @dependabot in #67
- Bump FluentAssertions.Analyzers from 0.18.0 to 0.19.1 by @dependabot in #68
- Bump Microsoft.NET.Test.Sdk from 17.6.0 to 17.6.1 by @dependabot in #69
- Bump Microsoft.NET.Test.Sdk from 17.6.1 to 17.6.2 by @dependabot in #70
- Bump FluentAssertions.Analyzers from 0.19.1 to 0.20.0 by @dependabot in #74
- Bump OpenTelemetry.Exporter.Console from 1.4.0 to 1.5.1 by @dependabot in #77
- Bump OpenTelemetry.Extensions.Hosting from 1.4.0 to 1.5.1 by @dependabot in #76
- Bump Microsoft.NET.Test.Sdk from 17.6.2 to 17.6.3 by @dependabot in #75
- Bump FluentAssertions.Analyzers from 0.20.0 to 0.21.0 by @dependabot in #78
- Bump xunit from 2.4.2 to 2.5.0 by @dependabot in #79
- Bump xunit.runner.visualstudio from 2.4.5 to 2.5.0 by @dependabot in #80
- Bump BenchmarkDotNet from 0.13.5 to 0.13.6 by @dependabot in #81
- Bump BenchmarkDotNet from 0.13.6 to 0.13.7 by @dependabot in #82
- Bump Microsoft.NET.Test.Sdk from 17.6.3 to 17.7.0 by @dependabot in #83
- Bump FluentAssertions.Analyzers from 0.21.0 to 0.22.0 by @dependabot in #84
- Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.1 by @dependabot in #85
- Bump FluentAssertions from 6.11.0 to 6.12.0 by @dependabot in #87
- Fix RecurringJob schedule inconsistencies by @NielsPilgaard in #91
Full Changelog: backgroundjobs-v7.0.7...backgroundjobs-v7.1.1
backgroundjobs-v7.1.0
What's Changed
- Bump System.Diagnostics.DiagnosticSource from 7.0.1 to 7.0.2 by @dependabot in #60
- Bump Shouldly from 4.1.0 to 4.2.0 by @dependabot in #61
- Bump FluentAssertions from 6.10.0 to 6.11.0 by @dependabot in #62
- Bump Shouldly from 4.2.0 to 4.2.1 by @dependabot in #63
- Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.0 by @dependabot in #64
- Bump coverlet.collector from 3.2.0 to 6.0.0 by @dependabot in #65
- Bump FluentAssertions.Analyzers from 0.17.2 to 0.17.3 by @dependabot in #66
- Bump FluentAssertions.Analyzers from 0.17.3 to 0.18.0 by @dependabot in #67
- Bump FluentAssertions.Analyzers from 0.18.0 to 0.19.1 by @dependabot in #68
- Bump Microsoft.NET.Test.Sdk from 17.6.0 to 17.6.1 by @dependabot in #69
- Bump Microsoft.NET.Test.Sdk from 17.6.1 to 17.6.2 by @dependabot in #70
- Bump FluentAssertions.Analyzers from 0.19.1 to 0.20.0 by @dependabot in #74
- Bump OpenTelemetry.Exporter.Console from 1.4.0 to 1.5.1 by @dependabot in #77
- Bump OpenTelemetry.Extensions.Hosting from 1.4.0 to 1.5.1 by @dependabot in #76
- Bump Microsoft.NET.Test.Sdk from 17.6.2 to 17.6.3 by @dependabot in #75
- Bump FluentAssertions.Analyzers from 0.20.0 to 0.21.0 by @dependabot in #78
- Bump xunit from 2.4.2 to 2.5.0 by @dependabot in #79
- Bump xunit.runner.visualstudio from 2.4.5 to 2.5.0 by @dependabot in #80
- Bump BenchmarkDotNet from 0.13.5 to 0.13.6 by @dependabot in #81
- Bump BenchmarkDotNet from 0.13.6 to 0.13.7 by @dependabot in #82
- Bump Microsoft.NET.Test.Sdk from 17.6.3 to 17.7.0 by @dependabot in #83
- Bump FluentAssertions.Analyzers from 0.21.0 to 0.22.0 by @dependabot in #84
- Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.1 by @dependabot in #85
- Bump FluentAssertions from 6.11.0 to 6.12.0 by @dependabot in #87
- Fix RecurringJob schedule inconsistencies by @NielsPilgaard in #91
Full Changelog: backgroundjobs-v7.0.7...backgroundjobs-v7.1.0
backgroundjobs-v7.0.7
Full Changelog: backgroundjobs-v7.0.6...backgroundjobs-v7.0.7
backgroundjobs-v7.0.6
Full Changelog: backgroundjobs-v7.0.5...backgroundjobs-v7.0.6
backgroundjobs-v7.0.5
Full Changelog: backgroundjobs-v7.0.4...backgroundjobs-v7.0.5
backgroundjobs-v7.0.4
What's Changed
- Bump FluentAssertions from 6.9.0 to 6.10.0 by @dependabot in #42
- Bump OpenTelemetry.Instrumentation.AspNetCore from 1.0.0-rc9.12 to 1.0.0-rc9.13 by @dependabot in #44
- Bump OpenTelemetry.Exporter.Prometheus.AspNetCore from 1.4.0-rc.3 to 1.4.0-rc.4 by @dependabot in #43
- Bump OpenTelemetry.Instrumentation.Http from 1.0.0-rc9.12 to 1.0.0-rc9.13 by @dependabot in #45
- Bump OpenTelemetry.Extensions.Hosting from 1.4.0-rc.3 to 1.4.0-rc.4 by @dependabot in #46
- Bump System.Diagnostics.DiagnosticSource from 7.0.0 to 7.0.1 by @dependabot in #47
- Bump Microsoft.Extensions.Hosting from 7.0.0 to 7.0.1 by @dependabot in #48
- Bump BenchmarkDotNet from 0.13.4 to 0.13.5 by @dependabot in #49
- Bump Microsoft.NET.Test.Sdk from 17.4.1 to 17.5.0 by @dependabot in #50
- Bump OpenTelemetry.Exporter.Console from 1.3.2 to 1.4.0 by @dependabot in #58
- Bump OpenTelemetry.Instrumentation.Http from 1.0.0-rc9.13 to 1.0.0-rc9.14 by @dependabot in #55
- Bump OpenTelemetry.Extensions.Hosting from 1.4.0-rc.4 to 1.4.0 by @dependabot in #57
- Bump OpenTelemetry.Instrumentation.AspNetCore from 1.0.0-rc9.13 to 1.0.0-rc9.14 by @dependabot in #56
- Bump PublicApiGenerator from 10.3.0 to 11.0.0 by @dependabot in #59
Full Changelog: backgroundjobs-v7.0.3...backgroundjobs-v7.0.4