workin exucution scheduler

This commit is contained in:
mr
2024-07-30 09:20:33 +02:00
parent 4730d5b4d4
commit 6ac855394b
3 changed files with 13 additions and 10 deletions

View File

@@ -39,8 +39,8 @@ func (d ScheduledType) EnumIndex() int {
type WorkflowExecution struct {
UUID string `json:"id,omitempty" bson:"id,omitempty" validate:"required"`
ExecDate time.Time `json:"execution_date,omitempty" bson:"execution_date,omitempty" validate:"required"`
EndDate time.Time `json:"end_date,omitempty" bson:"end_date,omitempty"`
ExecDate *time.Time `json:"execution_date,omitempty" bson:"execution_date,omitempty" validate:"required"`
EndDate *time.Time `json:"end_date,omitempty" bson:"end_date,omitempty"`
State ScheduledType `json:"state,omitempty" bson:"state,omitempty" `
WorkflowID string `json:"workflow_id" bson:"workflow_id,omitempty"`
}