From 55a039bd663d8750e53c1f0e715ada40c4bf96f8 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 16 Mar 2026 11:40:00 +0100 Subject: [PATCH] follow date --- models/resources/priced_resource.go | 3 ++- models/workflow_execution/workflow_execution.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/models/resources/priced_resource.go b/models/resources/priced_resource.go index 4ccf019..3be3bff 100755 --- a/models/resources/priced_resource.go +++ b/models/resources/priced_resource.go @@ -82,7 +82,8 @@ func (abs *PricedResource) GetLocationEnd() *time.Time { func (abs *PricedResource) GetLocationStart() *time.Time { if abs.BookingConfiguration == nil { - return nil + now := time.Now().Add(2 * time.Minute) + return &now } return abs.BookingConfiguration.UsageStart } diff --git a/models/workflow_execution/workflow_execution.go b/models/workflow_execution/workflow_execution.go index 3eb864b..cb84d37 100755 --- a/models/workflow_execution/workflow_execution.go +++ b/models/workflow_execution/workflow_execution.go @@ -219,6 +219,7 @@ func (d *WorkflowExecution) bookEach(executionsID string, wfID string, dt tools. if s := priced.GetLocationStart(); s != nil { start = *s } + fmt.Println("qdqsd", start, d.ExecDate) end := start.Add(time.Duration(priced.GetExplicitDurationInS()) * time.Second) var m map[string]interface{} b, _ := json.Marshal(priced)