add Job Tasks to enable the execution of adhoc asynchronous site-based workloads

This commit is contained in:
sbwalker
2026-02-19 08:23:11 -05:00
parent 13a58ed099
commit 0fd97d34d9
23 changed files with 633 additions and 252 deletions

View File

@@ -0,0 +1,56 @@
using System;
namespace Oqtane.Models
{
/// <summary>
/// An instance of a Task which is executed by the TaskJob
/// </summary>
public class JobTask : ModelBase
{
/// <summary>
/// Internal ID
/// </summary>
public int JobTaskId { get; set; }
/// <summary>
/// Site where the Task should execute
/// </summary>
public int SiteId { get; set; }
/// <summary>
/// Name for simple identification
/// </summary>
public string Name { get; set; }
/// <summary>
/// Fully qualified type name of the Task
/// </summary>
public string Type { get; set; }
/// <summary>
/// Any parameters related to the Task
/// </summary>
public string Parameters { get; set; }
/// <summary>
/// Indicates if the Task is completed
/// </summary>
public bool IsCompleted { get; set; }
/// <summary>
/// Any status information provided by the Task
/// </summary>
public string Status { get; set; }
// constructors
public JobTask() { }
public JobTask(int siteId, string name, string type, string parameters)
{
SiteId = siteId;
Name = name;
Type = type;
Parameters = parameters;
}
}
}