Browse Source

En cours de développement

master
losyme 1 month ago
parent
commit
ed73ca4305
  1. 2
      go.mod
  2. 4
      go.sum
  3. 2
      internal/model/jobs.go

2
go.mod

@ -4,7 +4,7 @@ go 1.17
require (
forge.chapril.org/dune/jw v0.0.0-20220513160729-d062e3083145
forge.chapril.org/dune/sdk v0.0.0-20220513160744-eba2448c1eaa
forge.chapril.org/dune/sdk v0.0.0-20220513161513-19509a8a5860
forge.chapril.org/losyme/application v0.0.0-20220510163706-4966ce5cf3a9
forge.chapril.org/losyme/cmdline v0.0.0-20220510163732-022916fbda75
forge.chapril.org/losyme/config v0.0.0-20220513081712-b0ace6b263d2

4
go.sum

@ -1,7 +1,7 @@
forge.chapril.org/dune/jw v0.0.0-20220513160729-d062e3083145 h1:CkGNqv5u/NvzUbvwat7A7PWkM6avhwYQgM3qsS/chr4=
forge.chapril.org/dune/jw v0.0.0-20220513160729-d062e3083145/go.mod h1:eyBPWS4xu8yjh9oqGaJah3kQe+0i/MssMQmnzke1Tf4=
forge.chapril.org/dune/sdk v0.0.0-20220513160744-eba2448c1eaa h1:kf5Sfj97+lv7xLLbRCnMSL3h/2hbzV/2R9rEWB6R3oQ=
forge.chapril.org/dune/sdk v0.0.0-20220513160744-eba2448c1eaa/go.mod h1:4mZlWV6/Pu9eL8U+uflCVrZPfKsUUD/U7Uy3MZvqm6g=
forge.chapril.org/dune/sdk v0.0.0-20220513161513-19509a8a5860 h1:z/0CD01IjkMVjgwZdkcXwpDJ3pt3dmuy5K/4cmXrCUI=
forge.chapril.org/dune/sdk v0.0.0-20220513161513-19509a8a5860/go.mod h1:4mZlWV6/Pu9eL8U+uflCVrZPfKsUUD/U7Uy3MZvqm6g=
forge.chapril.org/losyme/application v0.0.0-20220510163706-4966ce5cf3a9 h1:gOJRr5a58VwODhLrhPIxbN/4OrcR4Bz2T8RXdVMsaVY=
forge.chapril.org/losyme/application v0.0.0-20220510163706-4966ce5cf3a9/go.mod h1:Xs/0OhJj4/bdURwobmt3alDdfF1lyvcE51k98d0LmOw=
forge.chapril.org/losyme/breaker v0.0.0-20220411170549-42dd8e90d60f/go.mod h1:1vBH8Q+vML8EBZj1Pvcpzxx+eEBK+f24QzcXT5Bo+MY=

2
internal/model/jobs.go

@ -116,7 +116,7 @@ func (m *model) UpdateJob(job *jw.Job) (*jw.Job, error) {
job.Finished(jw.StatusSucceeded)
case jw.StatusPending:
if jr.Error == "" {
if jr.ErrMsg == "" {
job.RunAfter = time.Now().Add(jr.Duration)
job.Status = jw.StatusPending

Loading…
Cancel
Save