Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vhadianto committed Feb 22, 2024
1 parent aa358f8 commit f44edac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/es/db/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func GetFlowpipeConfig() (*flowpipeconfig.FlowpipeConfig, error) {
flowpipeConfigCached, found := cache.GetCache().Get("#flowpipeconfig")

if !found {
return flowpipeconfig.NewFlowpipeConfig(), nil
return nil, perr.BadRequestWithMessage("flowpipe config not found")
}

flowpipeConfig, ok := flowpipeConfigCached.(*flowpipeconfig.FlowpipeConfig)
Expand Down
9 changes: 9 additions & 0 deletions internal/service/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,15 @@ func (m *Manager) initializeResources() error {
cache.GetCache().SetWithTTL("#flowpipeconfig", flowpipeConfig, 24*7*52*99*time.Hour)
}

if m.shouldStartAPI() {
err := flowpipeConfig.SetupWatcher(context.TODO(), func(c context.Context, e error) {

})
if err != nil {
return err
}
}

w, errorAndWarning := workspace.LoadWorkspacePromptingForVariables(
m.ctx,
modLocation,
Expand Down

0 comments on commit f44edac

Please sign in to comment.