Version 3.2.0 (07/26/2024)
- removed obsolete methods
- fixed RunStartupJobsAsync
Version 3.1.0 (6/12/2022)
-
SchedulerBuilder.UnobservedTaskExceptionHandler
marked asObsolete
; -
Adds a function to create an event handler that handles unobserved task exceptions during the lifetime of the CRON job. Thanks to @stijnmoreels
builder.AddUnobservedTaskExceptionHandler(sp =>
{
var logger = sp.GetRequiredService<ILoggerFactory>().CreateLogger("CronJobs");
return
(sender, args) =>
{
logger?.LogError(args.Exception?.Message);
args.SetObserved();
};
});
Version 3.0.1
- Fixed issue with Scheduled jobs that are added on the fly to the execution engine issue #43
- Upgraded to the latest nuget packages
Version 3.0.0
- Removed ScheduledJob class
- Removed properties from IScheduledJob (CronSchedule, CronTimeZone, RunImmediately)
- Simplify registration for the jobs and options.
- Allow for the same job type to be registered with different cron schedule options.
- Jobs options are refreshed if the configuration provider notifies of the changes.
Version 2.1.0
- Introduced the ability to register schedule jobs at any point of time not only at the startup.
- Introduced the
SchedulerOptions
mechanism to update the options on configuration provider reload.
Version 1.1.2
- Resolved issue #22 "schedule executing twice per day instead of once"
- Resolved issue #23 "Updating CronScheduler with .NET Core Workers Template"
Version 1.0.9 (2019-02-18)
- Resolved issue #8 "Add Background Task Queue Functionality".
- Removed
HostedServiceBase
class in favor of built-inBackgroundService
class.
Version 1.0.7 (2018-01-16)
-
Resolved issue #5 "Add support for SourceLink", to make use of this feature in Visual Studio.NET please deselect
Enable Just My Code
and selectEnable Source Link support
as shown per this image: -
Resovled issue #6 "Add support for kdcllc Docker image".
-
Resolved issue #4 "Add support for seconds with Cron".
-
Resolved issue #7 "Add support for async Statup.cs job".
public string CronTimeZone { get; };
- Resolved issue#1 "Add option to not run job on application start"
- Resolved issue#2 "Add option to disable job"
- Add new Extension method that allows adding of the depended jobs:
services.AddScheduler(builder => { // recommended to use TryAddSingleton builder.Services.TryAddSingleton<IScheduledJob, TorahQuoteJob>(); builder.UnobservedTaskExceptionHandler = UnobservedHandler; });
- Add functional tests.
- Intial design