task-queue/

directory
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0

README

Task Queue Example

Demonstrates work distribution using the message bus queue groups.

Components

  • coordinator/ - Submits tasks and collects results
  • worker/ - Processes tasks from the queue

Running

Start one or more workers:

go run ./examples/task-queue/worker/
go run ./examples/task-queue/worker/  # second worker

In another terminal, start the coordinator:

go run ./examples/task-queue/coordinator/

What This Shows

  • Queue groups for load balancing
  • Work distribution across multiple workers
  • Result collection

Directories

Path Synopsis
Package main demonstrates a distributed task coordinator using agentkit's bus and registry.
Package main demonstrates a distributed task coordinator using agentkit's bus and registry.
Package main demonstrates a task worker using agentkit's bus and registry.
Package main demonstrates a task worker using agentkit's bus and registry.

Jump to

Keyboard shortcuts

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