Improve queue management error handling

This commit is contained in:
Dominic Ferrando
2026-07-12 01:56:56 -04:00
parent 8b81156f6c
commit 4d1b3bc3ef
2 changed files with 12 additions and 5 deletions
+2
View File
@@ -38,9 +38,11 @@ type EventQueueServiceOptions<Payload extends JsonValue, State extends JsonValue
export class EventQueueService<Payload extends JsonValue, State extends JsonValue> {
private _lastCleanDate: Date = new Date(0);
readonly cfg: EventQueueServiceOptions<Payload, State>["cfg"];
readonly type: EventType
constructor(private readonly opt: EventQueueServiceOptions<Payload, State>) {
this.cfg = opt.cfg;
this.type = opt.type;
}
get lastCleanDate() { return this._lastCleanDate; };