@@ -270,21 +270,27 @@ void should_PopulateEveryTaskanaConfiguration_When_EveryBuilderFunctionIsCalled(
270
270
int expectedJobBatchSize = 50 ;
271
271
Instant expectedJobFirstJun = Instant .MIN ;
272
272
Duration expectedJobRunEvery = Duration .ofDays (2 );
273
+ Duration expectedJobLockExpirationPeriod = Duration .ofDays (2 );
273
274
boolean expectedTaskCleanupJobEnabled = false ;
274
275
Duration expectedTaskCleanupJobMinimumAge = Duration .ofDays (1 );
275
276
boolean expectedTaskCleanupJobAllCompletedSameParentBusiness = false ;
277
+ Duration expectedTaskCleanupJobLockExpirationPeriod = Duration .ofDays (2 );
276
278
boolean expectedWorkbasketCleanupJobEnabled = false ;
279
+ Duration expectedWorkbasketCleanupJobLockExpirationPeriod = Duration .ofDays (2 );
277
280
boolean expectedSimpleHistoryCleanupJobEnabled = true ;
278
281
int expectedSimpleHistoryCleanupJobBatchSize = 16 ;
279
282
Duration expectedSimpleHistoryCleanupJobMinimumAge = Duration .ofHours (3 );
280
283
boolean expectedSimpleHistoryCleanupJobAllCompletedSameParentBusiness = false ;
284
+ Duration expectedSimpleHistoryCleanupJobLockExpirationPeriod = Duration .ofDays (2 );
281
285
boolean expectedTaskUpdatePriorityJobEnabled = true ;
282
286
int expectedPriorityJobBatchSize = 49 ;
283
287
Instant expectedPriorityJobFirstRun = Instant .MIN .plus (1 , ChronoUnit .DAYS );
284
288
Duration expectedTaskUpdatePriorityJobRunEvery = Duration .ofMinutes (17 );
289
+ Duration expectedTaskUpdatePriorityJobLockExpirationPeriod = Duration .ofDays (2 );
285
290
boolean expectedUserInfoRefreshJobEnabled = true ;
286
291
Instant expectedUserRefreshJobFirstRun = Instant .MIN .plus (2 , ChronoUnit .DAYS );
287
292
Duration expectedUserRefreshJobRunEvery = Duration .ofDays (5 );
293
+ Duration expectedUserRefreshJobLockExpirationPeriod = Duration .ofDays (2 );
288
294
Set <String > expectedJobSchedulerCustomJobs = Set .of ("Job_A" , "Job_B" );
289
295
// user configuration
290
296
boolean expectedAddAdditionalUserInfo = true ;
@@ -329,23 +335,32 @@ void should_PopulateEveryTaskanaConfiguration_When_EveryBuilderFunctionIsCalled(
329
335
.jobBatchSize (expectedJobBatchSize )
330
336
.jobFirstRun (expectedJobFirstJun )
331
337
.jobRunEvery (expectedJobRunEvery )
338
+ .jobLockExpirationPeriod (expectedJobLockExpirationPeriod )
332
339
.taskCleanupJobEnabled (expectedTaskCleanupJobEnabled )
333
340
.taskCleanupJobMinimumAge (expectedTaskCleanupJobMinimumAge )
334
341
.taskCleanupJobAllCompletedSameParentBusiness (
335
342
expectedTaskCleanupJobAllCompletedSameParentBusiness )
343
+ .taskCleanupJobLockExpirationPeriod (expectedTaskCleanupJobLockExpirationPeriod )
336
344
.workbasketCleanupJobEnabled (expectedWorkbasketCleanupJobEnabled )
345
+ .workbasketCleanupJobLockExpirationPeriod (
346
+ expectedWorkbasketCleanupJobLockExpirationPeriod )
337
347
.simpleHistoryCleanupJobEnabled (expectedSimpleHistoryCleanupJobEnabled )
338
348
.simpleHistoryCleanupJobBatchSize (expectedSimpleHistoryCleanupJobBatchSize )
339
349
.simpleHistoryCleanupJobMinimumAge (expectedSimpleHistoryCleanupJobMinimumAge )
340
350
.simpleHistoryCleanupJobAllCompletedSameParentBusiness (
341
351
expectedSimpleHistoryCleanupJobAllCompletedSameParentBusiness )
352
+ .simpleHistoryCleanupJobLockExpirationPeriod (
353
+ expectedSimpleHistoryCleanupJobLockExpirationPeriod )
342
354
.taskUpdatePriorityJobEnabled (expectedTaskUpdatePriorityJobEnabled )
343
355
.taskUpdatePriorityJobBatchSize (expectedPriorityJobBatchSize )
344
356
.taskUpdatePriorityJobFirstRun (expectedPriorityJobFirstRun )
345
357
.taskUpdatePriorityJobRunEvery (expectedTaskUpdatePriorityJobRunEvery )
358
+ .taskUpdatePriorityJobLockExpirationPeriod (
359
+ expectedTaskUpdatePriorityJobLockExpirationPeriod )
346
360
.userInfoRefreshJobEnabled (expectedUserInfoRefreshJobEnabled )
347
361
.userRefreshJobFirstRun (expectedUserRefreshJobFirstRun )
348
362
.userRefreshJobRunEvery (expectedUserRefreshJobRunEvery )
363
+ .userRefreshJobLockExpirationPeriod (expectedUserRefreshJobLockExpirationPeriod )
349
364
.customJobs (expectedJobSchedulerCustomJobs )
350
365
// user configuration
351
366
.addAdditionalUserInfo (expectedAddAdditionalUserInfo )
@@ -467,21 +482,27 @@ void should_PopulateEveryConfigurationProperty_When_UsingCopyConstructor() {
467
482
.jobBatchSize (50 )
468
483
.jobFirstRun (Instant .MIN )
469
484
.jobRunEvery (Duration .ofDays (2 ))
485
+ .jobLockExpirationPeriod (Duration .ofDays (2 ))
470
486
.taskCleanupJobEnabled (false )
471
487
.taskCleanupJobMinimumAge (Duration .ofDays (1 ))
472
488
.taskCleanupJobAllCompletedSameParentBusiness (false )
489
+ .taskCleanupJobLockExpirationPeriod (Duration .ofDays (6 ))
473
490
.workbasketCleanupJobEnabled (false )
491
+ .workbasketCleanupJobLockExpirationPeriod (Duration .ofDays (7 ))
474
492
.simpleHistoryCleanupJobEnabled (true )
475
493
.simpleHistoryCleanupJobBatchSize (16 )
476
494
.simpleHistoryCleanupJobMinimumAge (Duration .ofHours (3 ))
477
495
.simpleHistoryCleanupJobAllCompletedSameParentBusiness (false )
496
+ .simpleHistoryCleanupJobLockExpirationPeriod (Duration .ofDays (9 ))
478
497
.taskUpdatePriorityJobEnabled (true )
479
498
.taskUpdatePriorityJobBatchSize (49 )
480
499
.taskUpdatePriorityJobFirstRun (Instant .MIN .plus (1 , ChronoUnit .DAYS ))
481
500
.taskUpdatePriorityJobRunEvery (Duration .ofMinutes (17 ))
501
+ .taskUpdatePriorityJobLockExpirationPeriod (Duration .ofDays (10 ))
482
502
.userInfoRefreshJobEnabled (true )
483
503
.userRefreshJobFirstRun (Instant .MIN .plus (2 , ChronoUnit .DAYS ))
484
504
.userRefreshJobRunEvery (Duration .ofDays (5 ))
505
+ .userRefreshJobLockExpirationPeriod (Duration .ofDays (8 ))
485
506
.customJobs (Set .of ("Job_A" , "Job_B" ))
486
507
// user configuration
487
508
.addAdditionalUserInfo (true )
0 commit comments