(stats []configstore.WorkerLifecycleStats)
| 632 | } |
| 633 | } |
| 634 | |
| 635 | // Register config change handler |
| 636 | store.OnChange(router.HandleConfigChange) |
| 637 | |
| 638 | // Start polling |
| 639 | store.Start(context.Background()) |
| 640 | |
| 641 | // Resolve admin bearer token |
| 642 | internalSecret := cfg.InternalSecret |
| 643 | if internalSecret == "" { |
| 644 | tokenBytes := make([]byte, 32) |