Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
If ran on start, health and gtg endpoints won't be available until it…
Browse files Browse the repository at this point in the history
… finishes the first backup. This should fix that.
  • Loading branch information
kovacshuni committed Feb 5, 2018
1 parent 61ef42a commit 9493878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpService.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func newScheduleHTTPService(scheduler scheduler, healthService *healthService) *
}

func (h *scheduleHTTPService) ScheduleAndServe(colls []dbColl, cronExpr string, runAtStart bool) {
h.scheduler.SheduleBackups(colls, cronExpr, runAtStart)
go h.scheduler.SheduleBackups(colls, cronExpr, runAtStart)

hc := health.TimedHealthCheck{
HealthCheck: health.HealthCheck{
Expand Down

0 comments on commit 9493878

Please sign in to comment.