19 lines
499 B
Go
19 lines
499 B
Go
package domain
|
|
|
|
const ProcessingProfileRawHuman = "raw_human"
|
|
|
|
// Missing metadata always preserves the existing preprocessed workflow path.
|
|
func WorkflowProcessingProfile(nodes []WorkflowNode) string {
|
|
for _, node := range nodes {
|
|
if node.Data.OperatorID != "operator-builtin-annotation-gate" {
|
|
continue
|
|
}
|
|
for _, p := range node.Data.Hyperparams {
|
|
if p.Key == "PROCESSING_PROFILE" && p.Value == ProcessingProfileRawHuman {
|
|
return ProcessingProfileRawHuman
|
|
}
|
|
}
|
|
}
|
|
return ""
|
|
}
|