{"id":31441309,"url":"https://github.com/marcuwynu23/onqueue","last_synced_at":"2026-05-18T10:40:13.647Z","repository":{"id":289799161,"uuid":"961833611","full_name":"marcuwynu23/onqueue","owner":"marcuwynu23","description":"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.","archived":false,"fork":false,"pushed_at":"2026-04-21T14:10:35.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-21T16:20:23.429Z","etag":null,"topics":["cmdline","command","deployment","management","queue","queueing","shared","task","terminal","vps"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/onqueue","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcuwynu23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-07T08:34:32.000Z","updated_at":"2026-04-21T14:31:22.000Z","dependencies_parsed_at":"2025-04-25T05:34:13.927Z","dependency_job_id":"b257560d-44a6-4a4b-8283-b60ef8d478f5","html_url":"https://github.com/marcuwynu23/onqueue","commit_stats":null,"previous_names":["marcuwynu23/onqueue"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcuwynu23/onqueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Fonqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Fonqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Fonqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Fonqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcuwynu23","download_url":"https://codeload.github.com/marcuwynu23/onqueue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Fonqueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33175320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmdline","command","deployment","management","queue","queueing","shared","task","terminal","vps"],"created_at":"2025-09-30T16:42:30.784Z","updated_at":"2026-05-18T10:40:08.634Z","avatar_url":"https://github.com/marcuwynu23.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e Onqueue \u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/marcuwynu23/onqueue.svg\" alt=\"Stars Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/forks/marcuwynu23/onqueue.svg\" alt=\"Forks Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/issues/marcuwynu23/onqueue.svg\" alt=\"Issues Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/marcuwynu23/onqueue.svg\" alt=\"License Badge\"/\u003e\n\u003c/p\u003e\n\n**Onqueue** is a lightweight, multithreaded task queue runner built in Rust using [Axum](https://github.com/tokio-rs/axum). It supports REST API and CLI-based task management, making it ideal for automating shell commands, deployment tasks, and lightweight job queues.\n\n---\n\n## 📦 Features\n\n- ✅ Queue tasks with names and commands\n- ✅ Web server using Axum with endpoints to add/list tasks\n- ✅ CLI support: `onqueue add`, `onqueue list`\n- ✅ Multithreaded task runner with retry support\n- ✅ Persistent queue file via `queue.yml`\n- ✅ JSON API output\n- ✅ Automatic retries on failure\n- ✅ Configurable apps via `queue-app.yml`\n\n---\n\n## 🧰 Usage\n\n### ▶️ Running the Server\n\n```bash\nonqueue serve\n```\n\nServer starts on [http://localhost:8080](http://localhost:8080)\n\n---\n\n### 🌐 API Endpoints\n\n- **GET /** – Show welcome message\n- **GET /list** – Return current tasks as JSON\n- **GET /add?name=app1\u0026cmd=echo+Hello** – Queue a new task\n\n---\n\n### 🖥️ CLI Usage\n\n#### Add from `queue-app.yml`\n\n```yaml\n# queue-app.yml\nname: deploy\ncommand: ansible-playbook deploy.yml\n```\n\n```bash\nonqueue add .\n```\n\n#### List tasks\n\n```bash\nonqueue list\n```\n\n---\n\n## 📂 Directory Structure\n\n```\n.\n├── src/\n├── queue.yml           # Stores all queued tasks\n├── queue-app.yml       # CLI-based task configuration\n├── logs/               # (planned) Directory for task execution logs\n├── Cargo.toml\n└── README.md\n```\n\n---\n\n## 📖 Example\n\n```bash\ncurl \"http://localhost:8080/add?name=build\u0026cmd=echo+Building\"\ncurl \"http://localhost:8080/list\"\n```\n\nOutput:\n\n```json\n[\n  {\n    \"name\": \"build\",\n    \"command\": \"echo Building\",\n    \"status\": \"completed\",\n    \"start_time\": \"2025-04-07T10:00:00Z\",\n    \"end_time\": \"2025-04-07T10:00:01Z\",\n    \"retries\": 0\n  }\n]\n```\n\n---\n\n## 🛣 Roadmap\n\nSee [FEATURE-TODO-LIST.md](./FEATURE-TODO-LIST.md) for upcoming improvements:\n\n- Logging\n- CLI formatting\n- Cron-like scheduling\n- Persistent task results\n- PM2 integration\n\n---\n\n## 🧪 Development\n\nInstall dependencies:\n\n```bash\ncargo install --path .\n```\n\nRun in dev mode:\n\n```bash\ncargo run\n```\n\n---\n\n## ⚖️ License\n\nMIT © [Your Name or Org]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuwynu23%2Fonqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcuwynu23%2Fonqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuwynu23%2Fonqueue/lists"}