Align task schedule optional fields with shared schema

This commit is contained in:
2026-10-09 11:38:40 +08:00
parent ef1c625119
commit 4872deb08e
7 changed files with 304 additions and 59 deletions
@@ -210,6 +210,9 @@ func TestDispatcherCommandStartsWithIsolatedMQHTTPAndAgent(t *testing.T) {
taskSchedule := taskConfig["schedule"].(map[string]any)
taskSchedule["starts_at"] = "2000-01-01T00:00:00+08:00"
taskSchedule["weekly_windows"] = weekly
// Exercise the current contract through HTTP, persistence, MQ and mTLS.
delete(taskSchedule, "ends_at")
delete(taskSchedule, "excluded_dates")
if examples["config-read-task-asr.json"], err = json.Marshal(taskConfig); err != nil {
t.Fatal(err)
}