Quartz scheduling module for ABP framework.
An abp application module that allows manage quartz scheduling.
-
Install the following NuGet packages. (see how)
- Syrna.BlazoriseQuartz.Application
- Syrna.BlazoriseQuartz.Application.Contracts
- Syrna.BlazoriseQuartz.Domain
- Syrna.BlazoriseQuartz.Domain.Shared
- Syrna.BlazoriseQuartz.EntityFrameworkCore
- Syrna.BlazoriseQuartz.HttpApi
- Syrna.BlazoriseQuartz.HttpApi.Client
- Syrna.BlazoriseQuartz.Web
- Syrna.BlazoriseQuartz.Blazor
- Syrna.BlazoriseQuartz.Blazor.Server
- Syrna.BlazoriseQuartz.Blazor.WebAssembly
-
Add
DependsOn(typeof(BlazoriseQuartzXxxModule))
attribute to configure the module dependencies. (see how) -
Add
builder.ConfigureBlazoriseQuartz();
to theOnModelCreating()
method in MyProjectMigrationsDbContext.cs. -
Add EF Core migrations and update your database. See: ABP document.
- .NET 9
- ABP 9.1.1
- Quartz 3.13.0+
- Add, modify jobs and triggers
- Support Cron, Daily, Simple trigger
- Pause, resume, clone scheduled jobs
- Create custom UI to configure job
- Dynamic variables support
- Monitor currently executing jobs
- Load custom job DLLs through configuration
- Display job execution logs, state, return message and error message
- Filter execution logs
- Store execution logs into any database
- Build-in support for SQLite, MSSQL and PostgreSQL
- Auto cleanup of old execution logs
- Configurable logs retention days
- Build-in Jobs
- HTTP API client job
- You must create quartz database. You can find sql mssql script https://github.com/SyrnaAbp/Syrna.BlazoriseQuartz/blob/dev/demos/MainDemo/src/Syrna.BlazoriseQuartz.MainDemo.DbMigrator/sqlserver.sql
- If you will change database, get your sql script from https://github.com/quartznet/quartznet/tree/main/database/tables
- modify your appsettings.json
- More details can be found at BlazoriseQuartz
PostgreSql
"ConnectionStrings": {
"Default": "Host=<db_host>;Port=5432;Database=<db_name>;Username=<db_user>;Password=<db_password>"
},
"Quartz": {
...
"quartz.jobStore.driverDelegateType": "Quartz.Impl.AdoJobStore.PostgreSQLDelegate, Quartz",
...
"quartz.dataSource.myDS.provider": "Npgsql"
},
"BlazoriseQuartz": {
"DataStoreProvider": "PostgreSQL",
MsSql
"ConnectionStrings": {
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=SyrnaBlazoriseQuartz;Trusted_Connection=True"
},
"Quartz": {
...
"quartz.jobStore.driverDelegateType": "Quartz.Impl.AdoJobStore.StdAdoDelegate, Quartz",
...
"quartz.dataSource.myDS.provider": "SqlServer"
},
"BlazoriseQuartz": {
"DataStoreProvider": "SqlServer",
This project based on BlazoriseQuartz
- Demo project created for OpenIddict
- Demo project extended modules added
- Blazor modules added
- Abp Localization system integrated
- Turkish localization
- English localization