(entity params.ForgeEntity)
| 53 | } |
| 54 | |
| 55 | func composeWorkerWatcherFilters(entity params.ForgeEntity) dbCommon.PayloadFilterFunc { |
| 56 | return watcher.WithAny( |
| 57 | watcher.WithAll( |
| 58 | watcher.WithEntityFilter(entity), |
| 59 | watcher.WithOperationTypeFilter(dbCommon.UpdateOperation), |
| 60 | ), |
| 61 | // Watch for credentials updates. |
| 62 | watcher.WithAll( |
| 63 | watcher.WithForgeCredentialsFilter(entity.Credentials), |
| 64 | watcher.WithOperationTypeFilter(dbCommon.UpdateOperation), |
| 65 | ), |
| 66 | ) |
| 67 | } |
| 68 | |
| 69 | func poolIDFromLabels(runner params.RunnerReference) string { |
| 70 | for _, lbl := range runner.Labels { |
no test coverage detected