Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskPublisher ¶
type TaskPublisher interface {
// PublishChanged publishes an upsert event for the given task.
PublishChanged(ctx context.Context, task lib.Task) error
// PublishDeleted publishes a deletion event for the given task identifier.
PublishDeleted(ctx context.Context, id lib.TaskIdentifier) error
}
TaskPublisher publishes task change and deletion events to Kafka.
func NewTaskPublisher ¶
func NewTaskPublisher( eventObjectSender cdb.EventObjectSender, schemaID cdb.SchemaID, currentDateTimeGetter libtime.CurrentDateTimeGetter, vaultName string, ) TaskPublisher
NewTaskPublisher creates a TaskPublisher that sends events via EventObjectSender. Every changed event is stamped with vaultName in Task.Vault; consumers that share one topic across vaults (agent-task-executor) filter on it. frontmatter["target_vault"] remains the routing field for results.
Click to show internal directories.
Click to hide internal directories.