MCPcopy Create free account
hub / github.com/compozy/agh / bootTaskRoles

Method bootTaskRoles

internal/daemon/task_runtime.go:506–520  ·  view source on GitHub ↗
(ctx context.Context, state *bootState)

Source from the content-addressed store, hash-verified

504}
505
506func (d *Daemon) bootTaskRoles(ctx context.Context, state *bootState) error {
507 if state == nil || state.tasks == nil || state.tasks.store == nil || state.sessions == nil {
508 return nil
509 }
510 runtime, err := newTaskRoleRuntime(state.tasks.store, state.sessions, d.homePaths.HomeDir, state.logger, d.now)
511 if err != nil {
512 return err
513 }
514 if state.notifier != nil {
515 state.notifier.AddTaskRunEnqueuedObserver(runtime)
516 }
517 runtime.Recover(ctx)
518 state.tasks.roles.Store(runtime)
519 return nil
520}
521
522func taskManagerOptions(
523 store taskStore,

Callers 1

bootComponentsMethod · 0.95

Calls 3

newTaskRoleRuntimeFunction · 0.85
RecoverMethod · 0.45

Tested by

no test coverage detected