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

Method dispatchTaskRecovered

internal/task/block_service.go:714–732  ·  view source on GitHub ↗
(
	ctx context.Context,
	taskRecord Task,
	actor ActorContext,
	note string,
	at time.Time,
)

Source from the content-addressed store, hash-verified

712}
713
714func (m *Service) dispatchTaskRecovered(
715 ctx context.Context,
716 taskRecord Task,
717 actor ActorContext,
718 note string,
719 at time.Time,
720) {
721 payload := hookspkg.TaskRecoveredPayload{
722 PayloadBase: hookspkg.PayloadBase{
723 Event: hookspkg.HookTaskRecovered,
724 Timestamp: m.now().UTC(),
725 },
726 TaskContext: m.taskHookContext(taskRecord, actor, nil),
727 Note: redactTaskSecretText(strings.TrimSpace(note)),
728 At: at,
729 }
730 _, err := m.taskHooks.DispatchTaskRecovered(taskRunObservationHookContext(ctx), payload)
731 m.reportTaskHookFailure(hookspkg.HookTaskRecovered, err, taskRecord)
732}
733
734func (m *Service) taskHookContext(
735 taskRecord Task,

Callers 2

RecoverTaskMethod · 0.95

Calls 6

taskHookContextMethod · 0.95
reportTaskHookFailureMethod · 0.95
redactTaskSecretTextFunction · 0.85
DispatchTaskRecoveredMethod · 0.65
nowMethod · 0.45