Skip to content

Commit 749d856

Browse files
committed
upgrade to latest scheduler
1 parent f34b7c3 commit 749d856

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

core.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ func (core *Core) Execute() {
5757
// Execute scheduler
5858
core.Scheduler.Execute()
5959
// Analyze errors
60-
for job, res := range core.Scheduler.Results {
61-
if res != nil {
62-
fmt.Printf("%s failed:\n - %s \n", job, res.Error())
60+
for _, job := range core.Scheduler.Jobs {
61+
err := job.Result.Get()
62+
if err != nil {
63+
fmt.Printf("%s failed:\n - %s \n", job.ID(), err.Error())
6364
}
6465
}
6566
}

go.mod

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@ module github.com/kyoto-framework/kyoto
22

33
go 1.17
44

5-
require github.com/kyoto-framework/scheduler v0.0.0-20220414080908-51a6dd1c5224
5+
require github.com/kyoto-framework/scheduler v0.0.0-20220419061658-636e9222718e
6+
7+
require (
8+
github.com/kyoto-framework/zen v0.0.0-20220418065731-a871e34f2f62 // indirect
9+
golang.org/x/exp v0.0.0-20220328175248-053ad81199eb // indirect
10+
golang.org/x/text v0.3.7 // indirect
11+
)

go.sum

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,11 @@ github.com/kyoto-framework/scheduler v0.0.0-20220412141337-43a2345ac04d h1:wKyB9
2222
github.com/kyoto-framework/scheduler v0.0.0-20220412141337-43a2345ac04d/go.mod h1:hJ7obZkOy4OXQFpzwoFWG82T56Sx9BIrmiEX+y3JFfM=
2323
github.com/kyoto-framework/scheduler v0.0.0-20220414080908-51a6dd1c5224 h1:i1xvFLh8pDPAP36gnE284k3VNdZbPJA+wGu0lGOKgtA=
2424
github.com/kyoto-framework/scheduler v0.0.0-20220414080908-51a6dd1c5224/go.mod h1:hJ7obZkOy4OXQFpzwoFWG82T56Sx9BIrmiEX+y3JFfM=
25+
github.com/kyoto-framework/scheduler v0.0.0-20220419061658-636e9222718e h1:heifHcCIKY3TA3NoEf901oeAlXOJhu4Rr1fUkNdUf4Y=
26+
github.com/kyoto-framework/scheduler v0.0.0-20220419061658-636e9222718e/go.mod h1:U+m/me78tC4AFEw3UAwE/UzP95+sOJUBznpH4s6SXYE=
27+
github.com/kyoto-framework/zen v0.0.0-20220418065731-a871e34f2f62 h1:cvwrCnESCrWevkULCYZO1i3ElCuCPH1UyzVEZ2NVqjs=
28+
github.com/kyoto-framework/zen v0.0.0-20220418065731-a871e34f2f62/go.mod h1:MLXuSpmhQdT6PSqYQHcNPUBEfSGbMggeJKICBmMZfq4=
29+
golang.org/x/exp v0.0.0-20220328175248-053ad81199eb h1:pC9Okm6BVmxEw76PUu0XUbOTQ92JX11hfvqTjAV3qxM=
30+
golang.org/x/exp v0.0.0-20220328175248-053ad81199eb/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE=
31+
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
32+
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=

0 commit comments

Comments
 (0)