You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 thiswith a slice of result, then how can I return mutlipy result in one task? Or other way to record intermediate results?
The text was updated successfully, but these errors were encountered: