feat(store): task schedule columns, run trigger, scheduling queries

This commit is contained in:
2026-07-03 13:01:20 +07:00
parent e8f29064fb
commit 8f93dcd97b
7 changed files with 209 additions and 22 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ func TestDeleteTaskCascades(t *testing.T) {
ep2, _ := s.CreateEndpoint(ctx, Endpoint{RoleLabel: "d", Host: "b", Port: 993, TLSMode: "ssl"})
taskID, _ := s.CreateTask(ctx, Task{Name: "t", SrcEndpointID: ep1, DstEndpointID: ep2})
accID, _ := s.CreateAccount(ctx, Account{TaskID: taskID, SrcLogin: "u", SrcPassEnc: "x", DstLogin: "v", DstPassEnc: "y"})
_, _ = s.CreateRun(ctx, taskID)
_, _ = s.CreateRun(ctx, taskID, "manual")
if err := s.DeleteTask(ctx, taskID); err != nil {
t.Fatalf("delete task: %v", err)