mongo and or
This commit is contained in:
parent
2525cc7783
commit
89f14d99b8
@ -51,7 +51,7 @@ func (wfa *workflowMongoAccessor) execution(realData *Workflow, delete bool) (in
|
|||||||
obj := &workflow_execution.WorkflowExecution{
|
obj := &workflow_execution.WorkflowExecution{
|
||||||
ExecDate: &s,
|
ExecDate: &s,
|
||||||
EndDate: realData.Schedule.End,
|
EndDate: realData.Schedule.End,
|
||||||
State: 0,
|
State: 1,
|
||||||
WorkflowID: realData.UUID,
|
WorkflowID: realData.UUID,
|
||||||
}
|
}
|
||||||
accessor.StoreOne(obj)
|
accessor.StoreOne(obj)
|
||||||
@ -61,7 +61,7 @@ func (wfa *workflowMongoAccessor) execution(realData *Workflow, delete bool) (in
|
|||||||
obj := &workflow_execution.WorkflowExecution{
|
obj := &workflow_execution.WorkflowExecution{
|
||||||
ExecDate: realData.Schedule.Start,
|
ExecDate: realData.Schedule.Start,
|
||||||
EndDate: realData.Schedule.End,
|
EndDate: realData.Schedule.End,
|
||||||
State: 0,
|
State: 1,
|
||||||
WorkflowID: realData.UUID,
|
WorkflowID: realData.UUID,
|
||||||
}
|
}
|
||||||
accessor.StoreOne(obj)
|
accessor.StoreOne(obj)
|
||||||
|
@ -11,7 +11,7 @@ import (
|
|||||||
type ScheduledType int
|
type ScheduledType int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
SCHEDULED ScheduledType = iota
|
SCHEDULED ScheduledType = iota + 1
|
||||||
STARTED
|
STARTED
|
||||||
FAILURE
|
FAILURE
|
||||||
SUCCESS
|
SUCCESS
|
||||||
@ -41,7 +41,7 @@ type WorkflowExecution struct {
|
|||||||
UUID string `json:"id,omitempty" bson:"id,omitempty" validate:"required"`
|
UUID string `json:"id,omitempty" bson:"id,omitempty" validate:"required"`
|
||||||
ExecDate *time.Time `json:"execution_date,omitempty" bson:"execution_date,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"`
|
EndDate *time.Time `json:"end_date,omitempty" bson:"end_date,omitempty"`
|
||||||
State int `json:"state,omitempty" bson:"state,omitempty" `
|
State int64 `json:"state,omitempty" bson:"state,omitempty"`
|
||||||
WorkflowID string `json:"workflow_id" bson:"workflow_id,omitempty"`
|
WorkflowID string `json:"workflow_id" bson:"workflow_id,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user