Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Record intermediate results of the task #823

Open
KirigiriSuzumiya opened this issue Nov 26, 2024 · 0 comments
Open

Question: Record intermediate results of the task #823

KirigiriSuzumiya opened this issue Nov 26, 2024 · 0 comments

Comments

@KirigiriSuzumiya
Copy link

What should I do if I want to record the intermediate results of the task? e.g. {"progress":0.87},I find defination of task states in doc like this

// TaskState represents a state of a task
type TaskState struct {
  TaskUUID  string        `bson:"_id"`
  State     string        `bson:"state"`
  Results   []*TaskResult `bson:"results"`
  Error     string        `bson:"error"`
}

with a slice of result, then how can I return mutlipy result in one task? Or other way to record intermediate results?

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

No branches or pull requests

1 participant