feat: implement R4 production hardening
- Add configurable ingestion batch item limits - Improve client serialization and sanitization - Add graceful handling for corrupt GZIP partitions in data API - Expand admin session token scope - Update project documentation for R4 status
This commit is contained in:
1 parent
8132087085
commit
ae9b554189
59 files changed
+16879
-1074
No files matched your search
@@ -309,6 +309,34 @@ export class SettingsManager {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static async bootstrapMaintenanceSchedulerOnBoot(): Promise<{
|
||||
schedulerActive: boolean;
|
||||
hydrated: boolean;
|
||||
error?: string;
|
||||
}> {
|
||||
this.ensureMaintenanceScheduler();
|
||||
try {
|
||||
await this.getSettingsAsync();
|
||||
return {
|
||||
schedulerActive: this.isMaintenanceSchedulerActive(),
|
||||
hydrated:
|
||||
!process.env.DATABASE_URL?.trim() ||
|
||||
globals.__dataStackSettingsHydrated === true,
|
||||
};
|
||||
} catch (err: unknown) {
|
||||
const message = err instanceof Error ? err.message : String(err);
|
||||
console.warn(
|
||||
"[DataStack Boot] Maintenance scheduler init deferred/failed:",
|
||||
message,
|
||||
);
|
||||
return {
|
||||
schedulerActive: this.isMaintenanceSchedulerActive(),
|
||||
hydrated: false,
|
||||
error: message,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public static stopMaintenanceScheduler(): void {
|
||||
if (globals.__dataStackMaintenanceTimer) {
|
||||
clearInterval(globals.__dataStackMaintenanceTimer);
|
||||
|
||||
Reference in new issue
Block a user