Skip to content

Releases: NCronJob-Dev/NCronJob

v2.0.5

19 Apr 13:22
766adb1
Compare
Choose a tag to compare

Changed

  • Implementation of the scheduling. Better performance and closed some memory leaks
  • Throw exception if job cannot be resolved with dependencies from the DI container. Reported and implemented by @skarum in #23

v2.0.4

16 Apr 15:06
cde5dce
Compare
Choose a tag to compare

Fixed

v2.0.3

15 Apr 19:58
f2692fa
Compare
Choose a tag to compare

With v2 the overall API was cleaned up and made more consistent. AddNCronJob and AddCronJob are merged into one service definition:

Added

  • The IDE can help with RegEx pattern thanks to the StringSyntaxAttribute.
  • Added more code documentation (xmldoc) with many examples to rely less on the README.

Changed

  • In v1 one would define as such:
services.AddNCronJob();
services.AddCronJob<PrintHelloWorld>(options => 
{
    options.CronExpression = "* * * * *";
    options.Parameter = "Hello World";
});

With v2 the CronExpression is moved towards the builder pattern and AddCronJob is merged into AddNCronJob:

services.AddNCronJob(options => 
{
    options.AddJob<PrintHelloWorld>(j => 
    {
        j.WithCronExpression("* * * * *")
         .WithParameter("Hello World");
    });
});
  • Cleaned up AddNCronJob to not accidentally build the service container

v1.0.2

11 Apr 12:35
41f383c
Compare
Choose a tag to compare

Changed

  • Removed internal periodic timer so that instant jobs are really executed instantly and cron jobs on the correct time (rather than too late)

Migration

  • The IsolationLevel was completely removed as jobs are executed in their own scope anyway. It behaves like Isolation.NewTask by default.
  • TimerInterval in NCronJobOptions was removed as it no longer used.

v0.13.2

29 Mar 10:50
4e06989
Compare
Choose a tag to compare

Changed

  • Smaller performance improvements

v0.13.1

25 Mar 18:01
1576ddf
Compare
Choose a tag to compare

Changed

  • Check if IsolationLevel is in a valid range - otherwise it throws an exception
  • Small refactorings

v0.13.0

23 Mar 09:20
eb03122
Compare
Choose a tag to compare

Changed

  • Moved EnableSecondPrecision from AddNCronJob to AddCronJob to allow for more granular control over the precision of the cron expression
  • When a job is not registered, a error is logged, but the execution of other jobs is not interrupted

v0.12.0

22 Mar 11:28
48ca167
Compare
Choose a tag to compare

Changed

  • Breaking Change: Run is now called RunAsync to reflect the asynchronous nature of the method
  • Run doesn't take an optional CancellationToken anymore, as this is passed in anyway.

v0.11.5

22 Mar 10:10
d670369
Compare
Choose a tag to compare
refactor: Update workflows

v0.11.4

21 Mar 14:41
a8afe01
Compare
Choose a tag to compare

Added

  • Ability to set cron expressions with second-level precision
  • Support for net9.0
  • Support for Isolation Level to run jobs independent of the current scheduler
  • Notification system that allows to run a task when a job is finished