Add agent tagging / filtering for pipelines (#902)

Officially support labels for pipelines and agents to improve pipeline picking. 

* add pipeline labels
* update, improve docs  and add migration
* update proto file

---
closes #304 & #860
This commit is contained in:
Anbraten
2022-05-31 01:12:18 +02:00
committed by GitHub
parent 56a55842f6
commit e79ad00826
44 changed files with 385 additions and 1218 deletions

View File

@@ -96,7 +96,7 @@ func (q *persistentQueue) PushAtOnce(c context.Context, tasks []*Task) error {
}
// Poll retrieves and removes a task head of this queue.
func (q *persistentQueue) Poll(c context.Context, f Filter) (*Task, error) {
func (q *persistentQueue) Poll(c context.Context, f FilterFn) (*Task, error) {
task, err := q.Queue.Poll(c, f)
if task != nil {
log.Debug().Msgf("pull queue item: %s: remove from backup", task.ID)