Skip to content

Releases: NielsPilgaard/Pilgaard.BackgroundJobs

backgroundjobs-v7.2.2

08 Jun 18:06
4d45ce3
Compare
Choose a tag to compare

What's Changed

Full Changelog: backgroundjobs-v7.2.0...backgroundjobs-v7.2.2

backgroundjobs-v7.2.1

08 Jun 18:06
Compare
Choose a tag to compare

What's Changed

Full Changelog: backgroundjobs-v7.2.0...backgroundjobs-v7.2.1

backgroundjobs-v7.2.0

27 Feb 19:33
6caa8a4
Compare
Choose a tag to compare

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

Full Changelog: backgroundjobs-v7.1.2...backgroundjobs-v7.2.0

backgroundjobs-v7.1.2

24 Aug 10:26
Compare
Choose a tag to compare

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 implements IDisposable
  • Two new registration methods for IRecurringJobWithInitialDelay
  • Both constructors for BackgroundJobRegistration now take bool isRecurringJob. It defaults to false
  • Addition of this interface:
public interface IRecurringJobWithInitialDelay : IRecurringJob
{
    TimeSpan InitialDelay { get; }
}

Fixes #86

What's Changed

Full Changelog: backgroundjobs-v7.0.7...backgroundjobs-v7.1.2

backgroundjobs-v7.1.1

24 Aug 10:21
b42155d
Compare
Choose a tag to compare

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 implements IDisposable
  • Two new registration methods for IRecurringJobWithInitialDelay
  • Both constructors for BackgroundJobRegistration now take bool isRecurringJob. It defaults to false
  • Addition of this interface:
public interface IRecurringJobWithInitialDelay : IRecurringJob
{
    TimeSpan InitialDelay { get; }
}

Fixes #86

What's Changed

Full Changelog: backgroundjobs-v7.0.7...backgroundjobs-v7.1.1

backgroundjobs-v7.1.0

24 Aug 10:20
b42155d
Compare
Choose a tag to compare

What's Changed

Full Changelog: backgroundjobs-v7.0.7...backgroundjobs-v7.1.0

backgroundjobs-v7.0.7

13 Mar 18:27
Compare
Choose a tag to compare

backgroundjobs-v7.0.6

13 Mar 18:21
Compare
Choose a tag to compare

backgroundjobs-v7.0.5

13 Mar 18:01
c44f704
Compare
Choose a tag to compare

backgroundjobs-v7.0.4

13 Mar 10:48
bf4281e
Compare
Choose a tag to compare

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