WIP: AI Validator
This commit is contained in:
@@ -110,6 +110,19 @@ public class JobWorkerService : BackgroundService
|
||||
|
||||
processor.Process(layer);
|
||||
}
|
||||
else if (job.JobType == JobType.Validate)
|
||||
{
|
||||
var validator = pluginManager.GetValidator(job.PluginName);
|
||||
if (validator == null)
|
||||
{
|
||||
throw new Exception($"Validator '{job.PluginName}' not found");
|
||||
}
|
||||
|
||||
_logger.LogInformation("JobWorker: Executing validation for {LayerName} using {PluginName}",
|
||||
job.LayerName, job.PluginName);
|
||||
|
||||
validator.Validate(layer);
|
||||
}
|
||||
|
||||
// Job completed successfully
|
||||
job.Status = JobStatus.Completed;
|
||||
|
||||
Reference in New Issue
Block a user