v1.1.3

pardnchiu/go-queue

Last updated

[!NOTE] This README was generated by SKILL, get the ZH version from here.


PRIORITY TASKS THAT NEVER STARVE!

Go Reference Release License


A Go priority task queue with a bounded worker pool, anti-starvation promotion, and retries with per-task timeouts

Table of Contents

Features

go get github.com/pardnchiu/go-queue · Documentation

Architecture

Full Architecture

graph TB
    C[Caller] -->|Enqueue| P[Pending Queue]
    P --> H[Priority Min-Heap]
    H -->|Pop + Promote| W[Worker Pool]
    W --> E[Execute + Timeout + Panic Recovery]
    E -->|Failed and retryable| P
    E -->|Success| CB[Callback]
    E --> L[slog Events]
    S[Atomic State] -.-> P

License

This project is licensed under the MIT LICENSE.

Author

Just open an issue to share an idea.

go-queue contributors

©️ 2025 邱敬幃 Pardn Chiu

中文