This is an F# wrapper for Quartz.net library. It allows using the library from a more F# friendly API. This wrapper is not written or maintained by the Quartz.net team or in any way connected to them.
This library is available as nuget package (can be used by both nuget and paket).
At this moment, support is only added for unrecoverable jobs (jobs stored in RAM). This wrapper library is a result of needing to use Quartz.net unrecoverable jobs in another project so no immediate support is planned for other types of serializations. However, other types of jobs/serializations can be added if needed.
Commented simple example can be found in Quartz.FSharp.Unrecoverable.Demo project. Following is minimal version of that example:
let cron = Cron.CreateDefaultCron() |> Cron.SetEverySecond
use context = new Context.QuartzSchedulingContext()
let schedulingResult =
UnrecoverableJob.ScheduleJobForCommonGroup context cron
Context.TaskPriority.Medium "Example Task"
(fun () -> printfn "Task Called")
match schedulingResult with
| Ok(_) -> Context.StartRunningScheduledTasks context
| Error(_) -> printfn "Error while trying to schedule task"
Issue reports should contain basic information about the issue and instructions on how to reproduce it, as well as version of the library for which the issue is reported.
All contributions are welcome, both bug-fixes and improvements/new features.
The project is under MIT license which means both comercial and non-comercial use is allowed.