{"id":37106332,"url":"https://github.com/tinh-tinh/queue","last_synced_at":"2026-01-14T12:48:49.231Z","repository":{"id":256518462,"uuid":"855103708","full_name":"tinh-tinh/queue","owner":"tinh-tinh","description":"🛢 Queu Module for Tinh Tinh","archived":false,"fork":false,"pushed_at":"2025-10-20T14:07:08.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-20T15:35:26.631Z","etag":null,"topics":["framework","queue","redis"],"latest_commit_sha":null,"homepage":"https://tinh-tinh.github.io/docs/docs/intergrations/queue","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinh-tinh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-10T10:08:37.000Z","updated_at":"2025-10-20T14:07:12.000Z","dependencies_parsed_at":"2024-09-11T09:38:39.278Z","dependency_job_id":"59c89904-b886-450d-98ca-8f6abbe5bf1f","html_url":"https://github.com/tinh-tinh/queue","commit_stats":null,"previous_names":["tinh-tinh/ioredis","tinh-tinh/queue"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/tinh-tinh/queue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinh-tinh%2Fqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinh-tinh%2Fqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinh-tinh%2Fqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinh-tinh%2Fqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinh-tinh","download_url":"https://codeload.github.com/tinh-tinh/queue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinh-tinh%2Fqueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["framework","queue","redis"],"created_at":"2026-01-14T12:48:48.493Z","updated_at":"2026-01-14T12:48:49.223Z","avatar_url":"https://github.com/tinh-tinh.png","language":"Go","readme":"# Queue Module for Tinh Tinh\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"GitHub Release\" src=\"https://img.shields.io/github/v/release/tinh-tinh/queue\"\u003e\n\u003cimg alt=\"GitHub License\" src=\"https://img.shields.io/github/license/tinh-tinh/queue\"\u003e\n\u003ca href=\"https://codecov.io/gh/tinh-tinh/queue\" \u003e \n    \u003cimg src=\"https://codecov.io/gh/tinh-tinh/queue/graph/badge.svg?token=4MXQ4VGU2R\"/\u003e \n\u003c/a\u003e\n\u003ca href=\"https://pkg.go.dev/github.com/tinh-tinh/queue\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/tinh-tinh/queue.svg\" alt=\"Go Reference\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://avatars.githubusercontent.com/u/178628733?s=400\u0026u=2a8230486a43595a03a6f9f204e54a0046ce0cc4\u0026v=4\" width=\"200\" alt=\"Tinh Tinh Logo\"\u003e\n\u003c/div\u003e\n\n## Overview\n\nThe Queue module provides a robust, Redis-based job queue for the Tinh Tinh framework, supporting job scheduling, rate limiting, retries, concurrency, delayed jobs, priorities, and more.\n\n## Install\n\n```bash\ngo get -u github.com/tinh-tinh/queue/v2\n```\n\n## Features\n\n- **Redis-Based:** Robust persistence and distributed processing.\n- **Delayed Jobs:** Schedule jobs to run after a delay.\n- **Cron Scheduling:** Schedule and repeat jobs using cron patterns.\n- **Rate Limiting:** Control job processing rate.\n- **Retries:** Automatic retry on failure.\n- **Priority:** Job prioritization.\n- **Concurrency:** Multiple workers per queue.\n- **Pause/Resume:** Temporarily stop and resume job processing.\n- **Crash Recovery:** Recovers jobs after process crashes.\n- **Remove on Complete/Fail:** Clean up jobs after handling.\n\n## Quick Start\n\n### 1. Register the Module\n\n```go\nimport \"github.com/tinh-tinh/queue/v2\"\n\nqueueModule := queue.ForRoot(\u0026queue.Options{\n    Connect: \u0026redis.Options{\n        Addr: \"localhost:6379\",\n        DB:   0,\n    },\n    Workers: 3,\n    RetryFailures: 3,\n})\n```\n\nOr via factory:\n\n```go\nqueueModule := queue.ForRootFactory(func(ref core.RefProvider) *queue.Options {\n    return \u0026queue.Options{ /* ... */ }\n})\n```\n\n### 2. Register and Inject Queues\n\n```go\nuserQueueModule := queue.Register(\"user\") // uses default/global options\n\n// In your service or controller:\nuserQueue := queue.Inject(module, \"user\")\n```\n\n## Contributing\n\nWe welcome contributions! Please feel free to submit a Pull Request.\n\n## Support\n\nIf you encounter any issues or need help, you can:\n- Open an issue in the GitHub repository\n- Check our documentation\n- Join our community discussions\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinh-tinh%2Fqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinh-tinh%2Fqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinh-tinh%2Fqueue/lists"}