27 lines
505 B
Go
27 lines
505 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type AttachmentJob struct {
|
|
ID string
|
|
AttachmentID string
|
|
PipelineVersion int32
|
|
AttemptsStarted int32
|
|
MaxAttempts int32
|
|
LeaseGeneration int32
|
|
LeaseUntil time.Time
|
|
}
|
|
|
|
type AttachmentJobState struct {
|
|
AttachmentID string
|
|
PipelineVersion int32
|
|
ID string
|
|
Status string
|
|
LeaseGeneration int32
|
|
AttemptsStarted int32
|
|
MaxAttempts int32
|
|
LeaseUntil *time.Time
|
|
LeaseExpired bool
|
|
NextAttemptAt *time.Time
|
|
}
|