Browse Source

En cours de développement

master
losyme 2 months ago
parent
commit
b52b9acd19
  1. 4
      go.mod
  2. 8
      go.sum
  3. 2
      internal/model/validate.go
  4. 2
      internal/model/workflows.go

4
go.mod

@ -3,8 +3,8 @@ module forge.chapril.org/dune/dune
go 1.17
require (
forge.chapril.org/dune/jw v0.0.0-20220506155215-bf0f8db043bd
forge.chapril.org/dune/sdk v0.0.0-20220506155242-272376cb9e6c
forge.chapril.org/dune/jw v0.0.0-20220506164742-ca1a6b3d4bf9
forge.chapril.org/dune/sdk v0.0.0-20220506164809-abcbd2d584ff
forge.chapril.org/losyme/application v0.0.0-20220412100129-090626760b10
forge.chapril.org/losyme/cmdline v0.0.0-20220412100430-dfc2ee3aa245
forge.chapril.org/losyme/config v0.0.0-20220503100723-86311d7413d1

8
go.sum

@ -1,7 +1,7 @@
forge.chapril.org/dune/jw v0.0.0-20220506155215-bf0f8db043bd h1:8Uu6J/H61fbVOVlhzu9Kaz/tPCnQZ2wq551qW84TkC8=
forge.chapril.org/dune/jw v0.0.0-20220506155215-bf0f8db043bd/go.mod h1:dDaSAfQHfqv/S/i1NLFofgciB30x7QY8bZKuoyFtLBk=
forge.chapril.org/dune/sdk v0.0.0-20220506155242-272376cb9e6c h1:J8CgYrGMDYO8SIY2LQklrvLc1rzhIbiXdozQopDZyIs=
forge.chapril.org/dune/sdk v0.0.0-20220506155242-272376cb9e6c/go.mod h1:iDLu84YFhqfIs4YsyehY+omMA7hZ+KjnUqHhPq0lNlM=
forge.chapril.org/dune/jw v0.0.0-20220506164742-ca1a6b3d4bf9 h1:OPv6JJe5hnrV4qMYDvZGBUYXUQ28u2iSaZVdMLs96gw=
forge.chapril.org/dune/jw v0.0.0-20220506164742-ca1a6b3d4bf9/go.mod h1:eyBPWS4xu8yjh9oqGaJah3kQe+0i/MssMQmnzke1Tf4=
forge.chapril.org/dune/sdk v0.0.0-20220506164809-abcbd2d584ff h1:qvyEuqPaNZLFMvYyeCkkfADCn3lLQpkLGzKu47I5L8w=
forge.chapril.org/dune/sdk v0.0.0-20220506164809-abcbd2d584ff/go.mod h1:nsi+i16H/Gf400jhbQnln6QUVynBH11AmuNJ6mniOMs=
forge.chapril.org/losyme/application v0.0.0-20220412100129-090626760b10 h1:BY6SYBMjA3lzOc8J+WXzIi8cLT9orHXPLjxhyRlDdVY=
forge.chapril.org/losyme/application v0.0.0-20220412100129-090626760b10/go.mod h1:UaM6o4pD9ldjOhR/JKF1hxGla8fT8VxvfAq5w6ANLro=
forge.chapril.org/losyme/breaker v0.0.0-20220411170549-42dd8e90d60f/go.mod h1:1vBH8Q+vML8EBZj1Pvcpzxx+eEBK+f24QzcXT5Bo+MY=

2
internal/model/validate.go

@ -87,6 +87,8 @@ func (m *model) validateJob(job *jw.Job) error {
job.FinishedAt = nil
job.TimeReference = job.CreatedAt
job.Weight = 0
job.ErrorCounter = 0
job.LastError = nil
return nil
}

2
internal/model/workflows.go

@ -182,6 +182,8 @@ func (m *model) nextJob(wf *jw.Workflow, job *jw.Job, stepName string, data map[
nextJob.Public = job.Public
util.CopyKV(data, nextJob.Private)
nextJob.ErrorCounter = job.ErrorCounter
nextJob.LastError = job.LastError
return nextJob, nil
}

Loading…
Cancel
Save