Hangfire Recurring Job
This commit is contained in:
parent
9afa9edb98
commit
efdba93e32
7 changed files with 51 additions and 49 deletions
|
|
@ -1833,15 +1833,15 @@
|
|||
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.BackgroundWorkers.Definitions",
|
||||
"en": "Background Worker Definitions",
|
||||
"tr": "Arkaplan İşleri Tanımları"
|
||||
"key": "App.BackgroundWorkers.RecurringJobs",
|
||||
"en": "Recurring Jobs",
|
||||
"tr": "Tekrarlayan İşler"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.BackgroundWorkers.JobFlow",
|
||||
"en": "Background Worker Job Flow",
|
||||
"tr": "Arkaplan İşleri İş Akışı"
|
||||
"key": "App.BackgroundWorkers.Jobs",
|
||||
"en": "Jobs",
|
||||
"tr": "İşler"
|
||||
},
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4719,8 +4719,8 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
}
|
||||
#endregion
|
||||
|
||||
#region Background Worker
|
||||
listFormName = AppCodes.BackgroundWorkers.Definitions;
|
||||
#region Background Worker Recurring Jobs
|
||||
listFormName = AppCodes.BackgroundWorkers.RecurringJobs;
|
||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
||||
{
|
||||
var listForm = await _listFormRepository.InsertAsync(
|
||||
|
|
@ -4957,8 +4957,8 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
|||
}
|
||||
#endregion
|
||||
|
||||
#region Background Worker Job Flow
|
||||
listFormName = AppCodes.BackgroundWorkers.JobFlow;
|
||||
#region Background Worker Jobs
|
||||
listFormName = AppCodes.BackgroundWorkers.Jobs;
|
||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
||||
{
|
||||
var listForm = await _listFormRepository.InsertAsync(
|
||||
|
|
|
|||
|
|
@ -691,22 +691,22 @@
|
|||
},
|
||||
{
|
||||
"ParentCode": "App.BackgroundWorkers",
|
||||
"Code": "App.BackgroundWorkers.Definitions",
|
||||
"DisplayName": "App.BackgroundWorkers.Definitions",
|
||||
"Code": "App.BackgroundWorkers.RecurringJobs",
|
||||
"DisplayName": "App.BackgroundWorkers.RecurringJobs",
|
||||
"Order": 1,
|
||||
"Url": "/admin/list/App.BackgroundWorkers.Definitions",
|
||||
"Url": "/admin/list/App.BackgroundWorkers.RecurringJobs",
|
||||
"Icon": "FcDataConfiguration",
|
||||
"RequiredPermissionName": "App.BackgroundWorkers.Definitions",
|
||||
"RequiredPermissionName": "App.BackgroundWorkers.RecurringJobs",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
"ParentCode": "App.BackgroundWorkers",
|
||||
"Code": "App.BackgroundWorkers.JobFlow",
|
||||
"DisplayName": "App.BackgroundWorkers.JobFlow",
|
||||
"Code": "App.BackgroundWorkers.Jobs",
|
||||
"DisplayName": "App.BackgroundWorkers.Jobs",
|
||||
"Order": 2,
|
||||
"Url": "/admin/list/App.BackgroundWorkers.JobFlow",
|
||||
"Url": "/admin/list/App.BackgroundWorkers.Jobs",
|
||||
"Icon": "FcFlowChart",
|
||||
"RequiredPermissionName": "App.BackgroundWorkers.JobFlow",
|
||||
"RequiredPermissionName": "App.BackgroundWorkers.Jobs",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1364,17 +1364,17 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.Definitions",
|
||||
"Name": "App.BackgroundWorkers.RecurringJobs",
|
||||
"ParentName": null,
|
||||
"DisplayName": "App.BackgroundWorkers.Definitions",
|
||||
"DisplayName": "App.BackgroundWorkers.RecurringJobs",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
"MenuGroup": "Erp|Kurs"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.Definitions.Create",
|
||||
"ParentName": "App.BackgroundWorkers.Definitions",
|
||||
"Name": "App.BackgroundWorkers.RecurringJobs.Create",
|
||||
"ParentName": "App.BackgroundWorkers.RecurringJobs",
|
||||
"DisplayName": "Create",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
|
|
@ -1382,8 +1382,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.Definitions.Delete",
|
||||
"ParentName": "App.BackgroundWorkers.Definitions",
|
||||
"Name": "App.BackgroundWorkers.RecurringJobs.Delete",
|
||||
"ParentName": "App.BackgroundWorkers.RecurringJobs",
|
||||
"DisplayName": "Delete",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
|
|
@ -1391,8 +1391,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.Definitions.Export",
|
||||
"ParentName": "App.BackgroundWorkers.Definitions",
|
||||
"Name": "App.BackgroundWorkers.RecurringJobs.Export",
|
||||
"ParentName": "App.BackgroundWorkers.RecurringJobs",
|
||||
"DisplayName": "Export",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
|
|
@ -1400,8 +1400,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.Definitions.Import",
|
||||
"ParentName": "App.BackgroundWorkers.Definitions",
|
||||
"Name": "App.BackgroundWorkers.RecurringJobs.Import",
|
||||
"ParentName": "App.BackgroundWorkers.RecurringJobs",
|
||||
"DisplayName": "Import",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
|
|
@ -1409,8 +1409,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.Definitions.Update",
|
||||
"ParentName": "App.BackgroundWorkers.Definitions",
|
||||
"Name": "App.BackgroundWorkers.RecurringJobs.Update",
|
||||
"ParentName": "App.BackgroundWorkers.RecurringJobs",
|
||||
"DisplayName": "Update",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
|
|
@ -1419,17 +1419,17 @@
|
|||
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.JobFlow",
|
||||
"Name": "App.BackgroundWorkers.Jobs",
|
||||
"ParentName": null,
|
||||
"DisplayName": "App.BackgroundWorkers.JobFlow",
|
||||
"DisplayName": "App.BackgroundWorkers.Jobs",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
"MenuGroup": "Erp|Kurs"
|
||||
},
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.JobFlow.Create",
|
||||
"ParentName": "App.BackgroundWorkers.JobFlow",
|
||||
"Name": "App.BackgroundWorkers.Jobs.Create",
|
||||
"ParentName": "App.BackgroundWorkers.Jobs",
|
||||
"DisplayName": "Create",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
|
|
@ -1437,8 +1437,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.JobFlow.Delete",
|
||||
"ParentName": "App.BackgroundWorkers.JobFlow",
|
||||
"Name": "App.BackgroundWorkers.Jobs.Delete",
|
||||
"ParentName": "App.BackgroundWorkers.Jobs",
|
||||
"DisplayName": "Delete",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
|
|
@ -1446,8 +1446,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.JobFlow.Export",
|
||||
"ParentName": "App.BackgroundWorkers.JobFlow",
|
||||
"Name": "App.BackgroundWorkers.Jobs.Export",
|
||||
"ParentName": "App.BackgroundWorkers.Jobs",
|
||||
"DisplayName": "Export",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
|
|
@ -1455,8 +1455,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.JobFlow.Import",
|
||||
"ParentName": "App.BackgroundWorkers.JobFlow",
|
||||
"Name": "App.BackgroundWorkers.Jobs.Import",
|
||||
"ParentName": "App.BackgroundWorkers.Jobs",
|
||||
"DisplayName": "Import",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
|
|
@ -1464,8 +1464,8 @@
|
|||
},
|
||||
{
|
||||
"GroupName": "App.Saas",
|
||||
"Name": "App.BackgroundWorkers.JobFlow.Update",
|
||||
"ParentName": "App.BackgroundWorkers.JobFlow",
|
||||
"Name": "App.BackgroundWorkers.Jobs.Update",
|
||||
"ParentName": "App.BackgroundWorkers.Jobs",
|
||||
"DisplayName": "Update",
|
||||
"IsEnabled": true,
|
||||
"MultiTenancySide": 2,
|
||||
|
|
|
|||
|
|
@ -103,17 +103,19 @@ public class SqlDataSeeder : IDataSeedContributor, ITransientDependency
|
|||
var patterns = new[]
|
||||
{
|
||||
(@"CREATE\s+TABLE\s+(\[?\w+\]?\.?\[?\w+\]?)", "CREATE", "TABLE"),
|
||||
(@"ALTER\s+TABLE\s+(\[?\w+\]?\.?\[?\w+\]?)", "ALTER", "TABLE"),
|
||||
(@"CREATE\s+VIEW\s+(\[?\w+\]?\.?\[?\w+\]?)", "CREATE", "VIEW"),
|
||||
(@"CREATE\s+PROCEDURE\s+(\[?\w+\]?\.?\[?\w+\]?)", "CREATE", "PROCEDURE"),
|
||||
(@"ALTER\s+PROCEDURE\s+(\[?\w+\]?\.?\[?\w+\]?)", "ALTER", "PROCEDURE"),
|
||||
(@"CREATE\s+OR\s+ALTER\s+PROCEDURE\s+(\[?\w+\]?\.?\[?\w+\]?)", "CREATE/ALTER", "PROCEDURE"),
|
||||
(@"CREATE\s+FUNCTION\s+(\[?\w+\]?\.?\[?\w+\]?)", "CREATE", "FUNCTION"),
|
||||
(@"ALTER\s+TABLE\s+(\[?\w+\]?\.?\[?\w+\]?)", "ALTER", "TABLE"),
|
||||
(@"ALTER\s+VIEW\s+(\[?\w+\]?\.?\[?\w+\]?)", "ALTER", "VIEW"),
|
||||
(@"ALTER\s+PROCEDURE\s+(\[?\w+\]?\.?\[?\w+\]?)", "ALTER", "PROCEDURE"),
|
||||
(@"ALTER\s+FUNCTION\s+(\[?\w+\]?\.?\[?\w+\]?)", "ALTER", "FUNCTION"),
|
||||
(@"CREATE\s+(UNIQUE\s+)?INDEX\s+(\[?\w+\]?)", "CREATE", "INDEX"),
|
||||
(@"CREATE\s+TRIGGER\s+(\[?\w+\]?\.?\[?\w+\]?)", "CREATE", "TRIGGER"),
|
||||
(@"DROP\s+TABLE\s+(\[?\w+\]?\.?\[?\w+\]?)", "DROP", "TABLE"),
|
||||
(@"DROP\s+VIEW\s+(\[?\w+\]?\.?\[?\w+\]?)", "DROP", "VIEW"),
|
||||
(@"DROP\s+PROCEDURE\s+(\[?\w+\]?\.?\[?\w+\]?)", "DROP", "PROCEDURE"),
|
||||
(@"DROP\s+FUNCTION\s+(\[?\w+\]?\.?\[?\w+\]?)", "DROP", "FUNCTION"),
|
||||
};
|
||||
|
||||
foreach (var (pattern, action, type) in patterns)
|
||||
|
|
|
|||
|
|
@ -436,8 +436,8 @@ public static class PlatformConsts
|
|||
{
|
||||
public const string Default = Prefix.App + ".BackgroundWorkers";
|
||||
|
||||
public const string Definitions = Default + ".Definitions";
|
||||
public const string JobFlow = Default + ".JobFlow";
|
||||
public const string RecurringJobs = Default + ".RecurringJobs";
|
||||
public const string Jobs = Default + ".Jobs";
|
||||
}
|
||||
|
||||
public static class Menus
|
||||
|
|
|
|||
|
|
@ -408,8 +408,8 @@ public static class SeedConsts
|
|||
{
|
||||
public const string Default = Prefix.App + ".BackgroundWorkers";
|
||||
|
||||
public const string Definitions = Default + ".Definitions";
|
||||
public const string JobFlow = Default + ".JobFlow";
|
||||
public const string RecurringJobs = Default + ".RecurringJobs";
|
||||
public const string Jobs = Default + ".Jobs";
|
||||
}
|
||||
|
||||
//Web Site
|
||||
|
|
|
|||
Loading…
Reference in a new issue