Skip to content

Releases: NCronJob-Dev/NCronJob

v2.8.6

29 Aug 18:18
3c2aa80
Compare
Choose a tag to compare

Fixed

  • Dispose could still lead to issues when an exception was thrown in a task.

v2.8.5

18 Aug 18:30
a4b7415
Compare
Choose a tag to compare

Fixed

  • Disposing can lead to issues inside StopAsync. Fixed by @linkdotnet.

v2.8.4

23 Jun 18:00
74db099
Compare
Choose a tag to compare

Fixed

  • Dependent jobs where registered as singleton instead of scoped. Fixed by @linkdotnet.

v2.8.3

20 Jun 12:10
aaa35a6
Compare
Choose a tag to compare

Changed

  • Identical Job Definitions will not lead to multiple instances of the job running concurrently. By @linkdotnet.

v2.8.2

18 Jun 08:16
93c308e
Compare
Choose a tag to compare

Changed

  • Instantiating JobExecutionContext is not obsolete to prevent build errors.

v2.8.1

18 Jun 07:52
16e2a8c
Compare
Choose a tag to compare

Changed

  • Removed preview feature as users had to opt-in to use it.

v2.8.0

18 Jun 06:02
Compare
Choose a tag to compare

Added

  • Allow dynamically adding, removing jobs, updating the schedule or parameter and getting the schedule for a given job.
    Done by @linkdotnet. Reported by @KorsG in #83

Changed

This release includes improvements to the way Jobs are scheduled included in PR #85
implemented by @falvarez1

  • Improved scheduling accuracy by preventing jobs of different types from competing for the same queue.
  • Long-running jobs of one type no longer affect other types, improving overall job scheduling and execution.
  • Added notifications for job states and event hooks to enhance observability.
  • Introduced queue notifications for better monitoring.
  • Improved maintainability and concurrency handling.

Fixed

v2.7.4

03 Jun 12:46
Compare
Choose a tag to compare

Fixed

  • Anonymous jobs don't execute multiple times

v2.7.3

01 Jun 08:56
4847eab
Compare
Choose a tag to compare

Changed

  • Don't depend on prerelease version in net9.0

v2.7.2

01 Jun 08:53
bdf488e
Compare
Choose a tag to compare

Added

  • Ability to add a timezone for a "minimal job".
  • Run jobs automatically when a job either succeeded or failed allowing to model a job pipeline. By @linkdotnet.
builder.Services.AddNCronJob(options =>
{
    options.AddJob<ImportData>(p => p.WithCronExpression("0 0 * * *")
     .ExecuteWhen(
        success: s => s.RunJob<TransformData>("Optional Parameter"),
        faulted: s => s.RunJob<Notify>("Another Optional Parameter"));
});
  • Minimal API for instant jobs and job dependencies. By @linkdotnet.
public void MyOtherMethod() => jobRegistry.RunInstantJob((MyOtherService service) => service.Do());

Changed

  • Replace Microsoft.Extensions.Hosting with Microsoft.Extensions.Hosting.Abstractions for better compatibility. Reported by @chrisls121 in #74. Implemented by @linkdotnet.