Skip to content

Commit

Permalink
fix: count tasks requests in client
Browse files Browse the repository at this point in the history
  • Loading branch information
masontikhonov committed Dec 23, 2024
1 parent 27800bf commit 7c78142
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion venona/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.3
2.0.4
1 change: 0 additions & 1 deletion venona/pkg/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ func (a *Agent) reportTaskStatus(ctx context.Context, taskDef task.Task, err err
}

func (a *Agent) getTasks(ctx context.Context) (task.Tasks, []*workflow.Workflow) {
metrics.IncGetTasksRequests()
tasks := a.pullTasks(ctx)
return a.splitTasks(tasks)
}
Expand Down
2 changes: 2 additions & 0 deletions venona/pkg/codefresh/codefresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"net/url"
"path"

"github.com/codefresh-io/go/venona/pkg/metrics"
"github.com/codefresh-io/go/venona/pkg/task"
)

Expand Down Expand Up @@ -80,6 +81,7 @@ func New(opts Options) Codefresh {

// Tasks get from Codefresh all latest tasks
func (c cf) Tasks(ctx context.Context) (task.Tasks, error) {
metrics.IncGetTasksRequests()
query := map[string]string{
"waitForStatusReport": "true",
}
Expand Down
2 changes: 1 addition & 1 deletion venonactl/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.3
2.0.4

0 comments on commit 7c78142

Please sign in to comment.