refactor(scheduler): Add statusThreshold parameter to job.Run
The scheduler monitors running jobs to make sure they are not hung. If the status of a running job does not change after a duration (the interruptThreshold in the scheduler), the scheduler kills the job. This change passes the scheduler's interruptThreshold to the job when it calls Run() on the job.
This commit is contained in:
27 files changed
+87
-80
No files matched your search
@@ -209,7 +209,7 @@ func TestRunSetSync(t testing.TB, conn *db.DB, kmsCache *kms.Kms, plgm map[strin
|
||||
|
||||
j, err := newSetSyncJob(ctx, rw, rw, kmsCache, plgm)
|
||||
require.NoError(t, err)
|
||||
require.NoError(t, j.Run(ctx))
|
||||
require.NoError(t, j.Run(ctx, 0))
|
||||
}
|
||||
|
||||
func testGetDnsName(t testing.TB) string {
|
||||
|
||||
Reference in new issue
Block a user