mirror of
https://github.com/harness/drone.git
synced 2025-05-19 02:20:03 +08:00
[Harness] Fix Harness Build (#488)
This commit is contained in:
parent
69fc03bc19
commit
ae42cabc15
@ -78,7 +78,10 @@ func (c *command) run(*kingpin.ParseContext) error {
|
|||||||
|
|
||||||
g.Go(func() error {
|
g.Go(func() error {
|
||||||
// initialize metric collector
|
// initialize metric collector
|
||||||
system.services.MetricCollector.Register(gCtx)
|
if system.services.MetricCollector != nil {
|
||||||
|
system.services.MetricCollector.Register(gCtx)
|
||||||
|
}
|
||||||
|
|
||||||
return system.services.JobScheduler.Run(gCtx)
|
return system.services.JobScheduler.Run(gCtx)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user