Fix prototype service runtime dependencies
This commit is contained in:
parent
a5e8890df2
commit
19b58b3ea0
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@ -650,6 +650,9 @@ importers:
|
||||
'@fastify/swagger':
|
||||
specifier: ^9.4.2
|
||||
version: 9.7.0
|
||||
'@fastify/swagger-ui':
|
||||
specifier: ^5.2.5
|
||||
version: 5.2.5
|
||||
fastify:
|
||||
specifier: ^5.2.1
|
||||
version: 5.7.4
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
"@fastify/cors": "^10.0.2",
|
||||
"@fastify/rate-limit": "^10.3.0",
|
||||
"@fastify/swagger": "^9.4.2",
|
||||
"@fastify/swagger-ui": "^5.2.5",
|
||||
"fastify": "^5.2.1",
|
||||
"fastify-metrics": "^10.3.0",
|
||||
"jose": "^6.0.8",
|
||||
|
||||
@ -59,7 +59,7 @@ const CONTAINER_DEFS: Record<string, ContainerConfig> = {
|
||||
maintenance_windows: { partitionKeyPath: '/productId' },
|
||||
// Scheduled jobs
|
||||
job_definitions: { partitionKeyPath: '/productId' },
|
||||
job_runs: { partitionKeyPath: '/productId:jobName' },
|
||||
job_runs: { partitionKeyPath: '/pk' },
|
||||
// Telemetry (client diagnostics — see docs/WINDSURF/CLIENT_TELEMETRY_DESIGN.md)
|
||||
telemetry_events: { partitionKeyPath: '/pk', defaultTtl: 30 * 86400 },
|
||||
telemetry_error_clusters: { partitionKeyPath: '/pk', defaultTtl: 90 * 86400 },
|
||||
|
||||
@ -105,6 +105,7 @@ export async function executeJob(
|
||||
// Create run record
|
||||
const run: JobRunDoc = {
|
||||
id: runId,
|
||||
pk: `${def.productId}:${def.name}`,
|
||||
jobName: def.name,
|
||||
productId: def.productId,
|
||||
status: 'running',
|
||||
|
||||
@ -50,6 +50,7 @@ export const JobRunSchema = z.object({
|
||||
export type JobRun = z.infer<typeof JobRunSchema>;
|
||||
|
||||
export interface JobRunDoc extends JobRun {
|
||||
pk: string;
|
||||
_ts?: number;
|
||||
_etag?: string;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user