woj-server/pkg/pool/task.go
Paul Pan 6956fe4ee1
feat: capture runtime status from cgroups
pkg/pool: task is now available to return interface{} as result
pkg/pool: use atomic instead of mutex
service/runner: ContainerRun will return metrics
2024-02-15 12:53:57 +08:00

7 lines
78 B
Go

package pool
type Task struct {
id uint64
f func() (interface{}, error)
}