using GB5Shared.DTO.Framework.Login; namespace AutomationBLL.Schedule; // Syncs a TSCHEDULE row to JobEngine's Quartz-backed MJOBDEFINE/TSCHEDULER (see // GB5Solution/JobEngine/JobEngineSL/EndPoints/SaveJob.cs) instead of introducing a second // scheduling engine (Hangfire). Deliberately HTTP-based rather than a direct BLL/DI reference — // modules should stay independently deployable, and JobEngineModule is currently deferred/disabled // in every host (ConnectionStrings:QuartzStore not provisioned), so this call is expected to fail // until that's provisioned. Failure here must never block saving the local TSCHEDULE row. public interface IJobEngineScheduleClient { Task SyncAsync(int targetId, string jobName, string cronExpression, LoginDTO login, CancellationToken ct); }