Browse Source

En cours de développement

master
losyme 2 months ago
parent
commit
526d67dad4
  1. 6
      internal/demo/jobs.go

6
internal/demo/jobs.go

@ -12,9 +12,7 @@ import (
"forge.chapril.org/dune/sdk/runner"
)
func (d *Demo) succeeded(_ *runner.Job) {
// nothing to do
}
func (d *Demo) succeeded(_ *runner.Job) {}
func (d *Demo) failed(job *runner.Job) {
job.Failed().SetError("it's only a test") //////////////////////////////////////////////////////////////////////////
@ -30,13 +28,13 @@ func (d *Demo) pending(job *runner.Job) {
count, ok := v.(int)
if ok {
if count == 3 {
// end
return
}
job.SetPrivate("count", count+1)
} else {
job.Failed().SetError("unexpected error") //////////////////////////////////////////////////////////////////
return
}
} else {
job.SetPrivate("count", 0)

Loading…
Cancel
Save