handle renewing locks for long running jobs
This commit is contained in:
1 parent
90bbc764fc
commit
142ecaaf8b
6 files changed
+41
-1505
No files matched your search
@@ -20,6 +20,9 @@ export interface IJobsRepository {
|
||||
// locks up to `limit` due rows in one batch
|
||||
claimDueBatch(type: JobType, limit: number, now: number): Promise<Job[]>;
|
||||
|
||||
// Extends the locks we still hold. Returns how many were renewed
|
||||
renewLocks(ids: string[], now: number): Promise<number>;
|
||||
|
||||
// Completes a repeating job
|
||||
recordSuccess(id: string, nextScheduledAt: number, intervalMs: number, now: number): Promise<boolean>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user