Add snapshot job (#3282)

* snapshot job

* update census to include context, controller to include snapshot registry

* no need to export runFn in snapshot
This commit is contained in:
Michael Milton authored and GitHub committed 2023-06-06 14:26:01 -04:00
1 parent 7e094d824f
commit fbf56793c6
4 files changed
+121 -8

No files matched your search

+4
View File
@@ -41,6 +41,7 @@ import (
"github.com/hashicorp/boundary/internal/server"
serversjob "github.com/hashicorp/boundary/internal/server/job"
"github.com/hashicorp/boundary/internal/session"
"github.com/hashicorp/boundary/internal/snapshot"
pluginstorage "github.com/hashicorp/boundary/internal/storage/plugin"
"github.com/hashicorp/boundary/internal/target"
"github.com/hashicorp/boundary/internal/types/scope"
@@ -580,6 +581,9 @@ func (c *Controller) registerJobs() error {
if err := cleaner.RegisterJob(c.baseContext, c.scheduler, rw); err != nil {
return err
}
if err := snapshot.RegisterJob(c.baseContext, c.scheduler, rw, rw); err != nil {
return err
}
if err := census.RegisterJob(c.baseContext, c.scheduler, c.conf.RawConfig.Reporting.License.Enabled, rw, rw); err != nil {
return err
}