dispatch-module-architecture

Document BK-CI dispatch architecture for Docker, third-party agents, and Kubernetes.

2.5k|521|Updated May 29, 2019
One-click install
npx skills add https://github.com/TencentBlueKing/bk-ci --skill dispatch-module-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dispatch-module-architecture
Source: https://github.com/TencentBlueKing/bk-ci/tree/main/ai/skills/dispatch-module-architecture
Command: npx skills add https://github.com/TencentBlueKing/bk-ci --skill dispatch-module-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill documents the architecture and design guidelines for BK-CI's Dispatch module, enabling scalable and reliable task scheduling across Docker, third-party agents, and Kubernetes.

Core Features & Use Cases

  • Provides a clear modular structure for the dispatch subsystem, including API, service, and DAO layers.
  • Clarifies dispatch types (Docker, third-party agents, Kubernetes) and how tasks are allocated, queued, and monitored.
  • Serves as a reference for developers designing new dispatch policies, resource allocation strategies, or agent selection mechanisms.
  • Use Case: When adding a new scheduling strategy, refer to the architecture to identify integration points and data models.

Quick Start

Review the ai/skills/dispatch-module-architecture directory, focusing on the defined module layout and core enums (PipelineTaskStatus, JobQuotaVmType), and summarize how a build task moves from scheduling to execution.

Frequently Asked Questions about dispatch-module-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does build task dispatch work in BK-CI across Docker and Kubernetes?

Build task dispatch in BK-CI allocates, queues, and monitors jobs across Docker, third-party agents, and Kubernetes using a modular API, service, and DAO layer. It defines core enums like PipelineTaskStatus and JobQuotaVmType to manage scheduling.

How do I add a new scheduling strategy to the BK-CI dispatch subsystem?

To add a new scheduling strategy, review the dispatch module architecture to identify integration points and data models. The Skill codifies the module structure and data access patterns needed to extend agent selection and resource allocation.

What is the module structure of the BK-CI dispatch subsystem?

The dispatch subsystem structure separates concerns into API, service, and DAO layers. This modular design ensures correct scheduling by defining core concepts like task status, VM types, and queueing mechanisms for build tasks.

Can I use third-party agents for build task scheduling in BK-CI?

Yes, BK-CI dispatch supports third-party agents alongside Docker and Kubernetes. The architecture documents how tasks are allocated and monitored across these different dispatch types to ensure reliable and scalable execution.

What are the core concepts for managing build task queues in BK-CI?

Core concepts for build task queues in BK-CI include task status tracking, VM quota types, and queueing mechanisms. These elements are codified within the dispatch subsystem to ensure correct resource allocation and agent selection.

Why does BK-CI separate dispatch logic into API, service, and DAO layers?

BK-CI separates dispatch logic into API, service, and DAO layers to ensure scalable and reliable task scheduling. This structure clarifies data access patterns and isolates scheduling strategies from underlying resource allocation mechanisms.

Related Skills