Browse Source

En cours de développement

master
losyme 2 months ago
parent
commit
d727c6105a
  1. 22
      go.mod
  2. 44
      go.sum
  3. 4
      internal/model/workflows.go

22
go.mod

@ -4,21 +4,21 @@ go 1.17
require (
forge.chapril.org/dune/jw v0.0.0-20220506172327-ec10a33d36e4
forge.chapril.org/dune/sdk v0.0.0-20220506172343-c0a11bbb0bd0
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
forge.chapril.org/dune/sdk v0.0.0-20220510164715-92761e2b8803
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-20220510163744-5b8ac881d1d7
forge.chapril.org/losyme/errors v0.0.0-20220410175325-24ea6bde8500
forge.chapril.org/losyme/kong v0.0.0-20220414072431-484469408527
forge.chapril.org/losyme/kong v0.0.0-20220510163801-37a2e4eef4e2
forge.chapril.org/losyme/logger v0.0.0-20220410175418-da6d3430318f
forge.chapril.org/losyme/mongo v0.0.0-20220509152632-969cec10e582
forge.chapril.org/losyme/mongo v0.0.0-20220510163848-a1d3dea592df
forge.chapril.org/losyme/scheduler v0.0.0-20220410175530-16a93ef73cfb
forge.chapril.org/losyme/util v0.0.0-20220409171219-fbe160b317fd
forge.chapril.org/losyme/util v0.0.0-20220510163648-7b4a26c4a3dc
forge.chapril.org/losyme/uuid v0.0.0-20220410175232-691303a2786a
forge.chapril.org/minikit/daemon v0.0.0-20220503101247-2095c719d26a
forge.chapril.org/minikit/kong v0.0.0-20220503101306-d1e543ab5135
forge.chapril.org/minikit/minikit v0.0.0-20220503101216-fc7be9bdc759
forge.chapril.org/minikit/scheduler v0.0.0-20220503101330-030cee136d75
forge.chapril.org/minikit/daemon v0.0.0-20220510164525-bd0e355e1740
forge.chapril.org/minikit/kong v0.0.0-20220510164549-06f3d0ecfd63
forge.chapril.org/minikit/minikit v0.0.0-20220510164457-8259c1e039fb
forge.chapril.org/minikit/scheduler v0.0.0-20220510164604-506817c4436b
github.com/maragudk/gomponents v0.18.0
go.mongodb.org/mongo-driver v1.9.1
)

44
go.sum

@ -1,16 +1,16 @@
forge.chapril.org/dune/jw v0.0.0-20220506172327-ec10a33d36e4 h1:PIehgJ6YMzeVEJT42tbtmZLnit0HdHnrd68AxRnklYI=
forge.chapril.org/dune/jw v0.0.0-20220506172327-ec10a33d36e4/go.mod h1:eyBPWS4xu8yjh9oqGaJah3kQe+0i/MssMQmnzke1Tf4=
forge.chapril.org/dune/sdk v0.0.0-20220506172343-c0a11bbb0bd0 h1:zADQqq2yYziK3rJDUjlfUZPAcgvFgHE3mpZkHCC5VO0=
forge.chapril.org/dune/sdk v0.0.0-20220506172343-c0a11bbb0bd0/go.mod h1:/QK/6fWubNNCfXsn8DCekus/Re3QEn+EjnWluPPmIEY=
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/dune/sdk v0.0.0-20220510164715-92761e2b8803 h1:xdJSFtBMwClb/ePD6AXF+XQox1vPsL9OdPgaLJrzYD8=
forge.chapril.org/dune/sdk v0.0.0-20220510164715-92761e2b8803/go.mod h1:OhgOuXGemRovLgG7hffzOu6JzK96RfMF8P/SmxYMhYk=
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=
forge.chapril.org/losyme/buffer v0.0.0-20220410175226-b131a708418a h1:3f2hxFLAxRSxa0QZGlk7+3Zvk8hDYfyzBh3Y/qyVXh8=
forge.chapril.org/losyme/buffer v0.0.0-20220410175226-b131a708418a/go.mod h1:4Yl585hmF3bWZfuwGF2Ym8ErykJZiF9yawlmK7szIkc=
forge.chapril.org/losyme/cmdline v0.0.0-20220412100430-dfc2ee3aa245 h1:y3wERG6blsi7k3kDjkSa5J+jv6XP7b8/mqOV9AyoKHY=
forge.chapril.org/losyme/cmdline v0.0.0-20220412100430-dfc2ee3aa245/go.mod h1:4dXKHe/rQVJCc/x8Zwkm76O03UUj4L93I8Tk6Gm8Xh4=
forge.chapril.org/losyme/config v0.0.0-20220503100723-86311d7413d1 h1:yOMLPs88A+U4F5zqvmnbZvezcvnjwKO/d6+8j5FeAxI=
forge.chapril.org/losyme/config v0.0.0-20220503100723-86311d7413d1/go.mod h1:pfyhGRQsDekeAtI8o6Z5QAXbTYQe7mPhYeg9ni7VAdw=
forge.chapril.org/losyme/cmdline v0.0.0-20220510163732-022916fbda75 h1:8v93ooP8ZbxVtbzxkE33Tdb31DWkVeUE6MZ9SCE61B0=
forge.chapril.org/losyme/cmdline v0.0.0-20220510163732-022916fbda75/go.mod h1:FD/vIo2iwbbCuP4ZTBaKDGXV9doo4OYHQNB2doOIpXE=
forge.chapril.org/losyme/config v0.0.0-20220510163744-5b8ac881d1d7 h1:g8Nzys1cSNBFydxuBnWv6bgUYNwCFBpoPhbS27McUWE=
forge.chapril.org/losyme/config v0.0.0-20220510163744-5b8ac881d1d7/go.mod h1:rBLJzqOg+dm4oBP3BPuaYi1ZNsbg7mpPwAG1w2IEVm0=
forge.chapril.org/losyme/crypto v0.0.0-20220410175358-dbb88717dfbe h1:IzyAVrRR8cQzwepKZkMXjzh3hEnZevU0Fyca7gofDzY=
forge.chapril.org/losyme/crypto v0.0.0-20220410175358-dbb88717dfbe/go.mod h1:Vg0qCZ0bO1rIISPLjqtKUYcVCW19A7+dkaD8BSUr5Io=
forge.chapril.org/losyme/daemon v0.0.0-20220409180716-40985ac426a5 h1:G/LooUPFjZFh/cU7MNZXgXCDcLTPnPMyFDrvQ3T/OVY=
@ -18,31 +18,31 @@ forge.chapril.org/losyme/daemon v0.0.0-20220409180716-40985ac426a5/go.mod h1:aka
forge.chapril.org/losyme/errors v0.0.0-20220410175325-24ea6bde8500 h1:XXxlB1nyPaKsdbV9hnIxapwXcIgmn59X/x4R4pzbgAs=
forge.chapril.org/losyme/errors v0.0.0-20220410175325-24ea6bde8500/go.mod h1:DPi7ShpfKYwozYe7K4lLIv3BadlhTmqVhwhUiQ3u5GE=
forge.chapril.org/losyme/king v0.0.0-20220410175404-85e49de392ff/go.mod h1:n/LrQjdpCJvFvwonRCwEBU5EaR+SX/qA/YLCy/ghHvA=
forge.chapril.org/losyme/kong v0.0.0-20220414072431-484469408527 h1:PJsp7vyZ0H/0qh1Bwm2+KJo0AKQcLQGksrIffoae7P8=
forge.chapril.org/losyme/kong v0.0.0-20220414072431-484469408527/go.mod h1:BsqoQyl7vZyZImEsWgfFl7xALOuBfzZzk2ZJMr/nL9A=
forge.chapril.org/losyme/kong v0.0.0-20220510163801-37a2e4eef4e2 h1:hmj4wxww+A1OMEz1tVvM0tponGX85zuTYzMLtOrNmbo=
forge.chapril.org/losyme/kong v0.0.0-20220510163801-37a2e4eef4e2/go.mod h1:vxIUDFRzcfdcnKCw6XLioz3TEyhgGzwX7utgrmieYq4=
forge.chapril.org/losyme/kvfmt v0.0.0-20220410175310-5d426150816d h1:mCHDtjsvDS0I2rTMCxVRXQ5uhwWy2/EXjLYOSd+NZLg=
forge.chapril.org/losyme/kvfmt v0.0.0-20220410175310-5d426150816d/go.mod h1:K+5LaxyRwTlG/G7prpiyla6FwJVwB2k2ty6Qv4EzvIo=
forge.chapril.org/losyme/logger v0.0.0-20220410175418-da6d3430318f h1:RLjq8IPSKsvMqd6obsv5U+NRbLDgojDu2QBdqrdUYEk=
forge.chapril.org/losyme/logger v0.0.0-20220410175418-da6d3430318f/go.mod h1:m0fvXvmDcJK05HWrBRlsAkbj+rKht6aK0O7/2S/hyEg=
forge.chapril.org/losyme/mongo v0.0.0-20220509152632-969cec10e582 h1:iNIJwXWsPOLsv1rKWcRKkucdUXudyue5pABcMMCzKgM=
forge.chapril.org/losyme/mongo v0.0.0-20220509152632-969cec10e582/go.mod h1:p+dnuDt1sUdHVX+On5RBX9e/Zf4HJ7/bqCV7aG+2pXE=
forge.chapril.org/losyme/mongo v0.0.0-20220510163848-a1d3dea592df h1:oIZVAzJ/PbGNNj2zDoqwFJCPKF3WOv2dBojlL9hfYd0=
forge.chapril.org/losyme/mongo v0.0.0-20220510163848-a1d3dea592df/go.mod h1:O2ceyeW01ZhGfEp5NMAJH/kSlCq1R0Y+uq25FDvRlmA=
forge.chapril.org/losyme/roundrobin v0.0.0-20220409170047-3bc78a848535/go.mod h1:0YIujnqdL+SQPIRlSzGMBeWpWc4Y44K8aI0x+N+Wydg=
forge.chapril.org/losyme/scheduler v0.0.0-20220410175530-16a93ef73cfb h1:6RSJEv37HjeKCFbV/5tHcnPZ2ABoZPFiaXhM4j2vrjA=
forge.chapril.org/losyme/scheduler v0.0.0-20220410175530-16a93ef73cfb/go.mod h1:GEvtHTTUvQYTHdAzreZM9hUupMWWVktqn4cCebqjN0Q=
forge.chapril.org/losyme/util v0.0.0-20220409171219-fbe160b317fd h1:VDckSAVZZ6WglF/XaBsnQmGeRxGwLmWD1okABMdYfNk=
forge.chapril.org/losyme/util v0.0.0-20220409171219-fbe160b317fd/go.mod h1:lKYvkuBOTU3E2HuQZDh4ZSA4u3VcFopQbdPUKaHGHEk=
forge.chapril.org/losyme/util v0.0.0-20220510163648-7b4a26c4a3dc h1:BvEInWPqNOvbNoARhu5BZM+4FYh5KOBPdc7OhmkBaus=
forge.chapril.org/losyme/util v0.0.0-20220510163648-7b4a26c4a3dc/go.mod h1:lKYvkuBOTU3E2HuQZDh4ZSA4u3VcFopQbdPUKaHGHEk=
forge.chapril.org/losyme/uuid v0.0.0-20220410175232-691303a2786a h1:zRfX02Zl4ecufn+MRS5V5Hp//rP7yUGTILey+UVP5Xs=
forge.chapril.org/losyme/uuid v0.0.0-20220410175232-691303a2786a/go.mod h1:AgvbvGzTkQkbiM+s9eVhvLUSHbA0V6N+q5oBFI2v0LA=
forge.chapril.org/losyme/zombie v0.0.0-20220409174805-481eb907037c h1:GBZkDfZPBX9RseY3Jfzz3SiPKqcpwmrTs/gV6XEpSdQ=
forge.chapril.org/losyme/zombie v0.0.0-20220409174805-481eb907037c/go.mod h1:f2dCQZ+o+tk8hzWDapLPvqjiEF1QShkS19jOptvoYaM=
forge.chapril.org/minikit/daemon v0.0.0-20220503101247-2095c719d26a h1:VwzwpASR9RrjiybfAhg3TwplPRnwV/AZFEZEK+xKS0U=
forge.chapril.org/minikit/daemon v0.0.0-20220503101247-2095c719d26a/go.mod h1:PLq1WCWizoMNReK39dR4JB9sG1ZILBA0xFoLeuNLh4w=
forge.chapril.org/minikit/kong v0.0.0-20220503101306-d1e543ab5135 h1:iKKCPtCDQlSCbmWKLPP2S3Hn66o4EYE04YNbsZXLV1Y=
forge.chapril.org/minikit/kong v0.0.0-20220503101306-d1e543ab5135/go.mod h1:Ah3rRbMn0vFhmfNouoXYzF5tCc0dtw/awkbJetjCTic=
forge.chapril.org/minikit/minikit v0.0.0-20220503101216-fc7be9bdc759 h1:CERzgPafID+n4CVpEzAkUj0w2biTDkmJrdNRnz/T1PE=
forge.chapril.org/minikit/minikit v0.0.0-20220503101216-fc7be9bdc759/go.mod h1:MyvD5ltIUPLlBQ9/AZedv2MEZcxMBDubAyFG9oqDbjs=
forge.chapril.org/minikit/scheduler v0.0.0-20220503101330-030cee136d75 h1:XEoSe2P7xvSX3Dfbq1Vpv+1uk5AMcInhqWnv83JGFjM=
forge.chapril.org/minikit/scheduler v0.0.0-20220503101330-030cee136d75/go.mod h1:plUM0bBzvNcITubtbTUPp3Cqj2RxECvk1RV1+7+C8gc=
forge.chapril.org/minikit/daemon v0.0.0-20220510164525-bd0e355e1740 h1:MWDtowFotpuWqxNNaVMKS4ntrUVikE43etKw2yRVCpU=
forge.chapril.org/minikit/daemon v0.0.0-20220510164525-bd0e355e1740/go.mod h1:CI1XKWQbqN8KR+8ICxtDJbt9/uxLS96mbu6vlTTyz/s=
forge.chapril.org/minikit/kong v0.0.0-20220510164549-06f3d0ecfd63 h1:WK8VN9xi6p42I8IEtmz4nnBR0vESv6c+zELc8pcP3QY=
forge.chapril.org/minikit/kong v0.0.0-20220510164549-06f3d0ecfd63/go.mod h1:uRcnEK5on9C03mi3jDjtFkRmVp3NjLyXzDsqMjaxJXc=
forge.chapril.org/minikit/minikit v0.0.0-20220510164457-8259c1e039fb h1:FIJ28DHwdY5JOHXYdVKuvCPy6lLd8yGuC0+O44w6ZCg=
forge.chapril.org/minikit/minikit v0.0.0-20220510164457-8259c1e039fb/go.mod h1:Cs0a+PRnnD5wL7/ZeQihwZfIoEmtvJPKKl5hBoOC2+Q=
forge.chapril.org/minikit/scheduler v0.0.0-20220510164604-506817c4436b h1:MN9gIz3gULpZqkcgO43VQ/aY7pwCaiJCuKa5wbFelpQ=
forge.chapril.org/minikit/scheduler v0.0.0-20220510164604-506817c4436b/go.mod h1:9ICZRHBZtYnOeQQXNSWGS6KPayZwhCxkV0IuCFpm6KI=
github.com/Showmax/go-fqdn v1.0.0/go.mod h1:SfrFBzmDCtCGrnHhoDjuvFnKsWjEQX/Q9ARZvOrJAko=
github.com/coreos/go-systemd/v22 v22.3.2 h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI=
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=

4
internal/model/workflows.go

@ -33,7 +33,7 @@ func (m *model) stepToJob(wf *jw.Workflow, name string) (*jw.Job, error) {
SetMaxOccurrences(step.MaxOccurrences).
SetMaxAttempts(step.MaxAttempts)
util.CopyKV(step.Config, job.Private)
job.Private = util.CopyKV(step.Config, job.Private)
job.Workflow = &wf.ID
job.CreatedAt = time.Now()
@ -181,7 +181,7 @@ func (m *model) nextJob(wf *jw.Workflow, job *jw.Job, stepName string, data map[
}
nextJob.Public = job.Public
util.CopyKV(data, nextJob.Private)
nextJob.Private = util.CopyKV(data, nextJob.Private)
nextJob.ErrorCounter = job.ErrorCounter
nextJob.LastError = job.LastError

Loading…
Cancel
Save