Skip to content

backgroundjobs-v7.1.1

Compare
Choose a tag to compare
@github-actions github-actions released this 24 Aug 10:21
· 45 commits to master since this release
b42155d

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