forked from longtao.wu/droboticflow
15 lines
623 B
Go
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,
|
|
}
|
|
}
|