{"id":42015295,"url":"https://github.com/danfimov/taskiq-ydb","last_synced_at":"2026-01-26T03:07:42.599Z","repository":{"id":287355221,"uuid":"963867454","full_name":"danfimov/taskiq-ydb","owner":"danfimov","description":"Plugin for taskiq that adds a new result backend and broker based on YDB.","archived":false,"fork":false,"pushed_at":"2026-01-20T08:16:52.000Z","size":1223,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-20T17:59:54.113Z","etag":null,"topics":["taskiq","taskiq-result-backend","ydb"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/taskiq-ydb/","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/danfimov.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":"2025-04-10T10:32:59.000Z","updated_at":"2026-01-20T08:16:52.000Z","dependencies_parsed_at":"2025-04-11T11:12:34.697Z","dependency_job_id":"68bc9e92-b389-45ce-8422-47e90ebb4331","html_url":"https://github.com/danfimov/taskiq-ydb","commit_stats":null,"previous_names":["danfimov/taskiq-ydb"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/danfimov/taskiq-ydb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danfimov%2Ftaskiq-ydb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danfimov%2Ftaskiq-ydb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danfimov%2Ftaskiq-ydb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danfimov%2Ftaskiq-ydb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danfimov","download_url":"https://codeload.github.com/danfimov/taskiq-ydb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danfimov%2Ftaskiq-ydb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28765573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T02:25:41.078Z","status":"ssl_error","status_checked_at":"2026-01-26T02:24:28.809Z","response_time":59,"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":["taskiq","taskiq-result-backend","ydb"],"created_at":"2026-01-26T03:07:42.041Z","updated_at":"2026-01-26T03:07:42.592Z","avatar_url":"https://github.com/danfimov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# taskiq + ydb\n\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/taskiq-ydb?style=for-the-badge\u0026logo=python)](https://pypi.org/project/taskiq-ydb/)\n[![PyPI](https://img.shields.io/pypi/v/taskiq-ydb?style=for-the-badge\u0026logo=pypi)](https://pypi.org/project/taskiq-ydb/)\n[![Checks](https://img.shields.io/github/actions/workflow/status/danfimov/taskiq-ydb/code_check.yml?style=for-the-badge\u0026logo=pytest\u0026label=checks)](https://github.com/danfimov/taskiq-ydb)\n\nPlugin for taskiq that adds a new result backend, broker and schedule source based on YDB.\n\n## Installation\n\nThis project can be installed using pip/poetry/uv (choose your preferred package manager):\n\n```bash\npip install taskiq-ydb\n```\n\n## Quick start\n\n### Basic task processing\n\n1. Define your broker with [asyncpg](https://github.com/MagicStack/asyncpg):\n\n  ```python\n  # broker_example.py\n  import asyncio\n  from ydb.aio.driver import DriverConfig\n  from taskiq_ydb import YdbBroker, YdbResultBackend\n\n\n  driver_config = DriverConfig(\n      endpoint='grpc://localhost:2136',\n      database='/local',\n  )\n  broker = YdbBroker(\n      driver_config=driver_config,\n  ).with_result_backend(\n      YdbResultBackend(driver_config=driver_config),\n  )\n\n\n  @broker.task('solve_all_problems')\n  async def best_task_ever() -\u003e None:\n      \"\"\"Solve all problems in the world.\"\"\"\n      await asyncio.sleep(2)\n      print('All problems are solved!')\n\n\n  async def main() -\u003e None:\n      await broker.startup()\n      task = await best_task_ever.kiq()\n      print(await task.wait_result())\n      await broker.shutdown()\n\n\n  if __name__ == '__main__':\n      asyncio.run(main())\n  ```\n\n2. Start a worker to process tasks (by default taskiq runs two instances of worker):\n\n  ```bash\n  taskiq worker broker_example:broker\n  ```\n\n3. Run `broker_example.py` file to send a task to the worker:\n\n  ```bash\n  python broker_example.py\n  ```\n\nYour experience with other drivers will be pretty similar. Just change the import statement and that's it.\n\n### Task scheduling\n\n1. Define your broker and schedule source:\n\n  ```python\n  # scheduler_example.py\n  import asyncio\n\n  from taskiq import TaskiqScheduler\n  from ydb.aio.driver import DriverConfig\n\n  from taskiq_ydb import YdbBroker, YdbScheduleSource\n\n\n  driver_config = DriverConfig(\n      endpoint='grpc://localhost:2136',\n      database='/local',\n  )\n  broker = YdbBroker(driver_config=driver_config)\n  scheduler = TaskiqScheduler(\n      broker=broker,\n      sources=[\n          YdbScheduleSource(\n              driver_config=driver_config,\n              broker=broker,\n          ),\n      ],\n  )\n\n\n  @broker.task(\n      task_name='solve_all_problems',\n      schedule=[\n          {\n              'cron': '*/1 * * * *',  # type: str, either cron or time should be specified.\n              'cron_offset': None,  # type: str | timedelta | None, can be omitted.\n              'time': None,  # type: datetime | None, either cron or time should be specified.\n              'args': [],  # type list[Any] | None, can be omitted.\n              'kwargs': {},  # type: dict[str, Any] | None, can be omitted.\n              'labels': {},  # type: dict[str, Any] | None, can be omitted.\n          },\n      ],\n  )\n  async def best_task_ever() -\u003e None:\n      \"\"\"Solve all problems in the world.\"\"\"\n      await asyncio.sleep(2)\n      print('All problems are solved!')\n  ```\n\n2. Start worker processes:\n\n  ```bash\n  taskiq worker scheduler_example:broker\n  ```\n\n3. Run scheduler process:\n\n  ```bash\n  taskiq scheduler scheduler_example:scheduler\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanfimov%2Ftaskiq-ydb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanfimov%2Ftaskiq-ydb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanfimov%2Ftaskiq-ydb/lists"}