1 parent
1849fe7b74
commit
6068829d70
4 files changed
+13
-11
No files matched your search
Binary file not shown.
@@ -1606,22 +1606,22 @@ model SecondaryEmail {
|
||||
|
||||
// Needed to store tasks that need to be processed by a background worker or Tasker
|
||||
model Task {
|
||||
id String @id @unique @default(uuid())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
id String @id @unique @default(uuid())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
// The time at which the task should be executed
|
||||
scheduledAt DateTime @default(now())
|
||||
scheduledAt DateTime @default(now())
|
||||
// The time at which the task was successfully executed
|
||||
succeededAt DateTime?
|
||||
succeededAt DateTime?
|
||||
// The task type to be executed. Left it as a freeform string to avoid more migrations for now. Will be enforced at type level.
|
||||
type String
|
||||
type String
|
||||
// Generic payload for the task
|
||||
payload String
|
||||
payload String
|
||||
// The number of times the task has been attempted
|
||||
attempts Int @default(0)
|
||||
attempts Int @default(0)
|
||||
// The maximum number of times the task can be attempted
|
||||
maxAttempts Int @default(3)
|
||||
lastError String?
|
||||
maxAttempts Int @default(3)
|
||||
lastError String?
|
||||
lastFailedAttemptAt DateTime?
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user