runnable

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package runnable provides background task runners with recover and keep-alive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, name string, fn func(ctx context.Context))

Run starts a named background task with panic recovery and auto-restart on error.

func StartSessionArtifactDeclared

func StartSessionArtifactDeclared(ictx context.Context, eb eventbus.EventBus, db *gorm.DB)

StartSessionArtifactDeclared 订阅实时产物声明并持久化。

func StartSessionCompleted

func StartSessionCompleted(ictx context.Context, service contract.SessionService, eb eventbus.EventBus)

StartSessionCompleted subscribes to session completed events and dispatches to the service.

func StartSessionRunStarted added in v0.1.10

func StartSessionRunStarted(ictx context.Context, service contract.SessionService, eb eventbus.EventBus)

StartSessionRunStarted subscribes to run.started events and marks source user messages as processing.

func StartSessionTitleHandler

func StartSessionTitleHandler(ctx context.Context, service contract.SessionService, eb eventbus.EventBus, db *gorm.DB)

StartSessionTitleHandler subscribes to session title update requests and dispatches to the service.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL