| Crates.io | onqueue |
| lib.rs | onqueue |
| version | 0.1.0 |
| created_at | 2025-04-25 04:52:41.595192+00 |
| updated_at | 2025-04-25 04:52:41.595192+00 |
| description | a lightweight, multithreaded task queue runner |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1648520 |
| size | 43,925 |
Onqueue is a lightweight, multithreaded task queue runner built in Rust using Axum. It supports REST API and CLI-based task management, making it ideal for automating shell commands, deployment tasks, and lightweight job queues.
onqueue add, onqueue listqueue.ymlqueue-app.ymlonqueue serve
Server starts on http://localhost:8080
queue-app.yml# queue-app.yml
name: deploy
command: ansible-playbook deploy.yml
onqueue add .
onqueue list
.
โโโ src/
โโโ queue.yml # Stores all queued tasks
โโโ queue-app.yml # CLI-based task configuration
โโโ logs/ # (planned) Directory for task execution logs
โโโ Cargo.toml
โโโ README.md
curl "http://localhost:8080/add?name=build&cmd=echo+Building"
curl "http://localhost:8080/list"
Output:
[
{
"name": "build",
"command": "echo Building",
"status": "completed",
"start_time": "2025-04-07T10:00:00Z",
"end_time": "2025-04-07T10:00:01Z",
"retries": 0
}
]
See FEATURE-TODO-LIST.md for upcoming improvements:
Install dependencies:
cargo install --path .
Run in dev mode:
cargo run
MIT ยฉ [Your Name or Org]