-
Reid Givens authored
added a service that tracks local job submission actions (can track others, but only implimented for jobs). Submitting jobs will lock that job from being submitted again (local only) for 5 minutes.
Reid Givens authoredadded a service that tracks local job submission actions (can track others, but only implimented for jobs). Submitting jobs will lock that job from being submitted again (local only) for 5 minutes.
action.ts 294 B
export class Action {
type: string;
timestamp: Date;
id: string | number;
constructor(type: string, id: string | number) {
this.type = type;
this.id = id;
this.timestamp = new Date();
}
get timeSince(): number {
return Date.now() - this.timestamp.getTime();
}
}