chore(config): 🔧 Update core services configuration file
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
d1a37cabd4
commit
782b02ff73
1 changed files with 32 additions and 1 deletions
|
|
@ -512,7 +512,27 @@ export class ServiceManager {
|
|||
? serviceList.filter(s => this.isGpuService(s)).length
|
||||
: 0;
|
||||
|
||||
this.log('info', `Found ${servicesToStart.length} services (${gpuCount} GPU)`);
|
||||
this.log('info', `Found ${servicesToStart.length} services from ${serviceList.length} requested (${gpuCount} GPU)`);
|
||||
|
||||
// Debug: log which services are missing from registry
|
||||
const missing = serviceList.filter(id => !registry.services.has(id));
|
||||
const skippedDev = serviceList.filter(id => {
|
||||
const svc = registry.services.get(id);
|
||||
return svc?.devSkip;
|
||||
});
|
||||
|
||||
// Write debug info to file for troubleshooting
|
||||
const debugInfo = {
|
||||
timestamp: new Date().toISOString(),
|
||||
serviceListCount: serviceList.length,
|
||||
servicesToStartCount: servicesToStart.length,
|
||||
missingFromRegistry: missing,
|
||||
skippedDevSkip: skippedDev,
|
||||
servicesToStart,
|
||||
};
|
||||
import('node:fs').then(fs => {
|
||||
fs.writeFileSync('.local/restart-debug.json', JSON.stringify(debugInfo, null, 2));
|
||||
}).catch(() => {});
|
||||
|
||||
// Build startup plan
|
||||
this.log('section', 'Building startup plan');
|
||||
|
|
@ -560,6 +580,17 @@ export class ServiceManager {
|
|||
|
||||
this.log('info', `Plan: ${plan.totalServices} services in ${plan.phases.length} phases`);
|
||||
|
||||
// Append plan info to debug file
|
||||
import('node:fs').then(fs => {
|
||||
const planInfo = {
|
||||
totalServices: plan.totalServices,
|
||||
phases: plan.phases.map(p => ({
|
||||
services: p.services.map(s => s.id),
|
||||
})),
|
||||
};
|
||||
fs.appendFileSync('.local/restart-debug.json', '\n--- PLAN ---\n' + JSON.stringify(planInfo, null, 2));
|
||||
}).catch(() => {});
|
||||
|
||||
// Initialize state tracker with total service count
|
||||
options.stateTracker?.updateProgress({
|
||||
servicesTotal: plan.totalServices,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue