Skip to content

Commit

Permalink
Include expireInSeconds in the Job type (#489)
Browse files Browse the repository at this point in the history
* include expireInSeconds in type

* add `expireInSeconds` to `JobWithMetadata`

* ensure consistency between types
  • Loading branch information
abdel authored Sep 11, 2024
1 parent 1be666f commit d2a97e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,10 @@ declare namespace PgBoss {
id: string;
name: string;
data: T;
expireInSeconds: number;
}

interface JobWithMetadata<T = object> {
id: string;
name: string;
data: T;
interface JobWithMetadata<T = object> extends Job<T> {
priority: number;
state: 'created' | 'retry' | 'active' | 'completed' | 'cancelled' | 'failed';
retryLimit: number;
Expand Down

0 comments on commit d2a97e3

Please sign in to comment.