Skip to content

Commit 95ebe97

Browse files
committed
Merge pull request aspnetboilerplate#1027 from virtualcca/master
calculate next retry time unit should be seconds
2 parents 7ebcbc7 + 19cc3fe commit 95ebe97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Abp/BackgroundJobs/BackgroundJobInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class BackgroundJobInfo : CreationAuditedEntity<long>
8282
/// </summary>
8383
//[Index("IX_IsAbandoned_NextTryTime", 1)]
8484
public virtual bool IsAbandoned { get; set; }
85-
85+
8686
/// <summary>
8787
/// Priority of this job.
8888
/// </summary>
@@ -116,7 +116,7 @@ public BackgroundJobInfo()
116116
? LastTryTime.Value.AddSeconds(nextWaitDuration)
117117
: Clock.Now.AddSeconds(nextWaitDuration);
118118

119-
if (nextTryDate.Subtract(CreationTime).TotalDays > DefaultTimeout)
119+
if (nextTryDate.Subtract(CreationTime).TotalSeconds > DefaultTimeout)
120120
{
121121
return null;
122122
}

0 commit comments

Comments
 (0)