fix: use UTC date in tasker (#17329)
This commit is contained in:
1 parent
9868926ec1
commit
96571df308
1 file changed
+1
-1
@@ -23,7 +23,7 @@ const whereUpcomingTasks: Prisma.TaskWhereInput = {
|
||||
succeededAt: null,
|
||||
// Get only tasks that are scheduled to run now or in the past
|
||||
scheduledAt: {
|
||||
lt: new Date(),
|
||||
lt: new Date().toUTCString(),
|
||||
},
|
||||
// Get only tasks where maxAttemps has not been reached
|
||||
attempts: {
|
||||
|
||||
Reference in new issue
Block a user