Allow agents to require labels on workflows (#5633)

This commit is contained in:
Marcus Ramberg
2025-10-13 12:47:03 +02:00
committed by GitHub
parent 4da66b32d4
commit 05bf8d17e5
4 changed files with 60 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ func (t *InfoT) String() string {
return sb.String()
}
// Filter filters tasks in the queue. If the Filter returns false,
// FilterFn filters tasks in the queue. If the Filter returns false,
// the Task is skipped and not returned to the subscriber.
// The int return value represents the matching score (higher is better).
type FilterFn func(*model.Task) (bool, int)