Skip to content

primary update of the Task interface with context #105

primary update of the Task interface with context

primary update of the Task interface with context #105

Triggered via pull request June 13, 2024 11:54
Status Failure
Total duration 29s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
build: examples/metadata/main.go#L41
cannot use New() (value of type *MyTask) as gojob.Task value in argument to scheduler.Submit: *MyTask does not implement gojob.Task (wrong type for method Do)
build: examples/complex-http-crawler/main.go#L51
cannot use model.New(string(line)) (value of type *"github.com/WangYihang/gojob/examples/complex-http-crawler/pkg/model".MyTask) as gojob.Task value in argument to scheduler.Submit: *"github.com/WangYihang/gojob/examples/complex-http-crawler/pkg/model".MyTask does not implement gojob.Task (wrong type for method Do)
build: examples/prometheus/main.go#L47
cannot use New(fmt.Sprintf("https://httpbin.org/task/%d", i)) (value of type *MyTask) as gojob.Task value in argument to scheduler.Submit: *MyTask does not implement gojob.Task (wrong type for method Do)
build: examples/random-error/main.go#L47
cannot use New(i, rand.Intn(10)) (value of type *MyTask) as gojob.Task value in argument to scheduler.Submit: *MyTask does not implement gojob.Task (wrong type for method Do)
build: examples/nopper/main.go#L37
cannot use New() (value of type *MyTask) as gojob.Task value in argument to scheduler.Submit: *MyTask does not implement gojob.Task (wrong type for method Do)
build: examples/result-channel/main.go#L57
cannot use New(fmt.Sprintf("https://httpbin.org/task/%d", i)) (value of type *MyTask) as gojob.Task value in argument to scheduler.Submit: *MyTask does not implement gojob.Task (wrong type for method Do)
build: examples/simple-http-crawler/main.go#L46
cannot use New(fmt.Sprintf("https://httpbin.org/task/%d", i)) (value of type *MyTask) as gojob.Task value in argument to scheduler.Submit: *MyTask does not implement gojob.Task (wrong type for method Do)
build: examples/sleeper/main.go#L41
cannot use New(i, rand.Intn(10)) (value of type *MyTask) as gojob.Task value in argument to scheduler.Submit: *MyTask does not implement gojob.Task (wrong type for method Do)
build: examples/tcp-port-scanner/main.go#L30
cannot use New(ip, port) (value of type *MyTask) as gojob.Task value in argument to scheduler.Submit: *MyTask does not implement gojob.Task (wrong type for method Do)
build
Process completed with exit code 1.