Skip to content

Conversation

@vimsucks
Copy link
Contributor

ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Message *string `json:"message"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Message *string `json:"message"`
Message *string `json:"message,omitempty"`

Type string `json:"type"`
Message *string `json:"message"`
CurrentState string `json:"currentState`
LastRunResult *string `json:"lastRunResult`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
LastRunResult *string `json:"lastRunResult`
LastRunResult *string `json:"lastRunResult,omitempty"`

Message *string `json:"message"`
CurrentState string `json:"currentState`
LastRunResult *string `json:"lastRunResult`
NextRun *string `json:"nextRun"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NextRun *string `json:"nextRun"`
NextRun *string `json:"nextRun,omitempty"`

CurrentState string `json:"currentState`
LastRunResult *string `json:"lastRunResult`
NextRun *string `json:"nextRun"`
LastRun *string `json:"lastRun"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
LastRun *string `json:"lastRun"`
LastRun *string `json:"lastRun,omitempty"`


type PaginationResult[T any] struct {
Items []T `json:"items"`
ContinuationToken *string `json:"continuationToken"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ContinuationToken *string `json:"continuationToken"`
ContinuationToken *string `json:"continuationToken,omitempty"`

if len(tasks) > 0 {
task, err := s.GetTask(tasks[0].ID)
if err != nil {
assert.Failf(t, "fail to run task", err.Error())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why fail tu run task? you onle get the task and don't run them

@anmoel
Copy link
Member

anmoel commented Mar 13, 2025

pleas test run and stop functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants