Files
kandev/apps/backend/internal/office/scheduler/wake_payload.go
T
2026-05-16 20:07:57 +01:00

15 lines
474 B
Go

package scheduler
import (
"context"
"github.com/kandev/kandev/internal/office/service"
)
// BuildWakePayload constructs the JSON wake payload for a run request.
// Delegates to service.Service.BuildWakePayload.
// Returns an empty string when no task_id is present in the run payload.
func (ss *SchedulerService) BuildWakePayload(ctx context.Context, payload string) (string, error) {
return ss.svc.BuildWakePayload(ctx, &service.RunPayloadInput{Payload: payload})
}