{"id":17350499,"url":"https://github.com/pilosus/dqueue","last_synced_at":"2026-05-17T03:46:49.828Z","repository":{"id":75222043,"uuid":"97323047","full_name":"pilosus/dqueue","owner":"pilosus","description":"dqueue is a distributed queue wrapper for redis-py package","archived":false,"fork":false,"pushed_at":"2017-07-15T15:01:45.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-24T20:52:24.153Z","etag":null,"topics":["distributed","queue","redis","redlock"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/pilosus.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}},"created_at":"2017-07-15T15:01:33.000Z","updated_at":"2017-07-15T15:02:29.000Z","dependencies_parsed_at":"2023-02-26T23:31:34.392Z","dependency_job_id":null,"html_url":"https://github.com/pilosus/dqueue","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"d183d5ed1cf457556083cff120139e0379b07235"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pilosus/dqueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilosus%2Fdqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilosus%2Fdqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilosus%2Fdqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilosus%2Fdqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pilosus","download_url":"https://codeload.github.com/pilosus/dqueue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilosus%2Fdqueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33127002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"online","status_checked_at":"2026-05-17T02:00:05.366Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["distributed","queue","redis","redlock"],"created_at":"2024-10-15T17:07:10.231Z","updated_at":"2026-05-17T03:46:49.812Z","avatar_url":"https://github.com/pilosus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"dqueue\n======\n\ndqueue is a distributed queue wrapper for [redis-py](https://github.com/andymccurdy/redis-py) package.\n\ndqueue implements scenario of multiple users working simultaneously\nwith a pool of projects represented by ids. Each user can lock a\nbunch of projects exclusively so that no other users can lock the same\nids for themselves until the lock is expired.\n\nA real-world problem the dqueue solves is work of\nadminstrators/moderators team processing projects: pushing them into\nqueue, locking, removing projects from the queue, etc, so that each\nteam member could work with his or her own portion from the pool of\nall projects.\n\nExample\n======\n\n```\n$ docker run -p 6379:6379 redis\n$ python\n\n\u003e\u003e\u003e import redis, dqueue\n\u003e\u003e\u003e connection = redis.StrictRedis(host='localhost', port=6379, db=0)\n\u003e\u003e\u003e queue = dqueue.DistributedQueue(connection=connection, ttl_seconds=60*20)\n\u003e\u003e\u003e queue.lock_pids(user_id=1, pids=[1,2,3,4,5])\n{1, 2, 3, 4, 5}\n\u003e\u003e\u003e queue.lock_pids(user_id=2, pids=[6,7,8])\n{6, 7, 8}\n\u003e\u003e\u003e queue.retrieve_user(user_id=1)\n{1, 2, 3, 4, 5}\n\u003e\u003e\u003e queue.retrieve_user(user_id=2)\n{6, 7, 8}\n\u003e\u003e\u003e queue.retrieve_all()\n{1, 2, 3, 4, 5, 6, 7, 8}\n\u003e\u003e\u003e queue.remove_pids(user_id=2, pids=[6,8])\n{6, 8}\n\u003e\u003e\u003e queue.remove_all(user_id=1)\n{1, 2, 3, 4, 5}\n\u003e\u003e\u003e queue.retrieve_all()\n{7}\n```\n\nAuthor\n======\n\ndqueue developed and maintained by Vitaly R. Samigullin.\n\nLicense\n=======\n\nSee LICENSE file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilosus%2Fdqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpilosus%2Fdqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilosus%2Fdqueue/lists"}