droboticflow/internal/domain/capture_mode.go
2026-09-08 18:29:26 +08:00

15 lines
623 B
Go

package domain
// Unscheduled streaming workflows use Capture admission, not a whole-root timer.
// Instances start paused and deliberately do not inherit a source directory.
func InitialCaptureAutomation(kind WorkflowType, schedule *WorkflowSchedule) *CaptureAutomationConfig {
if kind != WorkflowTypeStreaming || WorkflowScheduleEnabled(schedule) {
return nil
}
return &CaptureAutomationConfig{
Enabled: false, Schema: "orbbec_ego_stereo_v1", CompletionMode: "required_files",
ManifestName: "source-manifest.json", WorkflowInputID: "sourceDirectory",
PollIntervalSeconds: 30, StabilityWindowSeconds: 30,
}
}