mirror of
https://github.com/certimate-go/certimate.git
synced 2026-06-22 21:05:48 +08:00
29 lines
955 B
Go
29 lines
955 B
Go
package domain
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const CollectionNameWorkflowRun = "workflow_run"
|
|
|
|
type WorkflowRun struct {
|
|
Meta
|
|
WorkflowId string `json:"workflowId" db:"workflowRef"`
|
|
Status WorkflowRunStatusType `json:"status" db:"status"`
|
|
Trigger WorkflowTriggerType `json:"trigger" db:"trigger"`
|
|
StartedAt time.Time `json:"startedAt" db:"startedAt"`
|
|
EndedAt time.Time `json:"endedAt" db:"endedAt"`
|
|
Graph *WorkflowGraph `json:"graph" db:"graph"`
|
|
Error string `json:"error" db:"error"`
|
|
}
|
|
|
|
type WorkflowRunStatusType string
|
|
|
|
const (
|
|
WorkflowRunStatusTypePending WorkflowRunStatusType = "pending"
|
|
WorkflowRunStatusTypeProcessing WorkflowRunStatusType = "processing"
|
|
WorkflowRunStatusTypeSucceeded WorkflowRunStatusType = "succeeded"
|
|
WorkflowRunStatusTypeFailed WorkflowRunStatusType = "failed"
|
|
WorkflowRunStatusTypeCanceled WorkflowRunStatusType = "canceled"
|
|
)
|