Skip to content

Commit 2cc0833

Browse files
Heer AmbaviHeer Ambavi
authored andcommitted
remove commentd
1 parent 6fdbf57 commit 2cc0833

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

‎packages/trueforge/src/db/postgres/types.ts‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -396,18 +396,6 @@ export interface ScheduleTable {
396396
/**
397397
* One row per fire, pending or historical.
398398
* PRIMARY KEY (id)
399-
* WITH (fillfactor = 85); two or three small bounded updates per row
400-
* (scheduled -> triggered -> terminal)
401-
* UNIQUE (tenant_id, schedule_id, name) — the fire slot, so a duplicated dispatch
402-
* cannot double-insert
403-
* CREATE INDEX schedule_run_due_idx ON schedule_run (scheduled_for)
404-
* WHERE status = 'scheduled' -- partial: the table is mostly terminal rows
405-
* CREATE UNIQUE INDEX schedule_run_pending_uq ON schedule_run (schedule_id)
406-
* WHERE status = 'scheduled' -- at most one pending run per schedule
407-
* CREATE INDEX schedule_run_list_idx ON schedule_run (schedule_id, scheduled_for DESC)
408-
*
409-
* No `session_id` column: the run -> session link is carried on `session.custom`
410-
* (`{ schedule_id, run_id }`) and resolved when the runs list is assembled.
411399
*/
412400
export interface ScheduleRunTable {
413401
/** application-generated (ulid) */
@@ -417,12 +405,10 @@ export interface ScheduleRunTable {
417405
schedule_id: string;
418406
/** the fire slot: `sched-<unixSeconds>` for cron, `manual-<token>` for run-now */
419407
name: string;
420-
/** the instant this run was scheduled for; preserved even when the run is `missed` */
421408
scheduled_for: Date;
422409
status: ScheduleRunStatus;
423410
/** `UserContext.userRef` of who triggered the run */
424411
triggered_by: string;
425-
/** set when status moves to `triggered` */
426412
triggered_at: Date | null;
427413
created_at: Date;
428414
updated_at: Date;

‎packages/trueforge/src/db/sqlite/types.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,10 @@ export interface ScheduleRunTable {
254254
schedule_id: string;
255255
/** the run name: `sched-<unixSeconds>` for cron, `manual-<token>` for run-now */
256256
name: string;
257-
/** the instant this run was scheduled for. */
258257
scheduled_for: string;
259258
status: ScheduleRunStatus;
260259
/** `UserContext.userRef` of who triggered the run */
261260
triggered_by: string;
262-
/** set when status moves to `triggered` */
263261
triggered_at: string | null;
264262
created_at: string;
265263
updated_at: string;

0 commit comments

Comments
 (0)