backgroundjobs-v7.1.1
github-actions
released this
24 Aug 10:21
·
45 commits
to master
since this release
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