Releases: NCronJob-Dev/NCronJob
Releases · NCronJob-Dev/NCronJob
v2.8.6
Fixed
- Dispose could still lead to issues when an exception was thrown in a task.
v2.8.5
Fixed
- Disposing can lead to issues inside
StopAsync
. Fixed by @linkdotnet.
v2.8.4
Fixed
- Dependent jobs where registered as singleton instead of scoped. Fixed by @linkdotnet.
v2.8.3
Changed
- Identical Job Definitions will not lead to multiple instances of the job running concurrently. By @linkdotnet.
v2.8.2
Changed
- Instantiating
JobExecutionContext
is not obsolete to prevent build errors.
v2.8.1
Changed
- Removed preview feature as users had to opt-in to use it.
v2.8.0
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
Fixed
- Anonymous jobs don't execute multiple times
v2.7.3
Changed
- Don't depend on prerelease version in
net9.0
v2.7.2
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
withMicrosoft.Extensions.Hosting.Abstractions
for better compatibility. Reported by @chrisls121 in #74. Implemented by @linkdotnet.