{"id":15978148,"url":"https://github.com/taleeus/pgotask","last_synced_at":"2025-03-26T22:31:06.296Z","repository":{"id":257798275,"uuid":"860383445","full_name":"taleeus/pgotask","owner":"taleeus","description":"Simple and flexible task scheduler for Go, with a very small footprint","archived":false,"fork":false,"pushed_at":"2025-03-19T11:47:13.000Z","size":52,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T12:35:18.254Z","etag":null,"topics":["back-end","go","postgres","scheduler"],"latest_commit_sha":null,"homepage":"","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/taleeus.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":"2024-09-20T10:32:07.000Z","updated_at":"2025-03-19T11:47:05.000Z","dependencies_parsed_at":"2024-09-25T16:40:02.024Z","dependency_job_id":"5184602d-7967-4005-98b3-83fbc39e0759","html_url":"https://github.com/taleeus/pgotask","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"527ba22ea679af7ce321b51859e871b4a4ede228"},"previous_names":["taleeus/pgotask"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleeus%2Fpgotask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleeus%2Fpgotask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleeus%2Fpgotask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleeus%2Fpgotask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taleeus","download_url":"https://codeload.github.com/taleeus/pgotask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245747566,"owners_count":20665808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["back-end","go","postgres","scheduler"],"created_at":"2024-10-07T23:06:08.113Z","updated_at":"2025-03-26T22:31:05.852Z","avatar_url":"https://github.com/taleeus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test](https://github.com/taleeus/pgotask/actions/workflows/test.yml/badge.svg)](https://github.com/taleeus/pgotask/actions/workflows/test.yml)\n\n# PGoTask\nPGoTask is a simple and flexible task scheduler for Go, with a very small footprint.\nThe only requisite is an available Postgres database.\n\n## How it works\n1. Create a Scheduler and provide a Postgres connection\n    - You will provide callbacks for specific task types; think of it as the classic queue topics\n2. The Scheduler automatically creates tables for itself\n3. The Scheduler runs in background and checks if new tasks are available on its table\n    - It's possible to specify how much to wait between loops\n4. During the dispatch phase, the pending tasks will be sent to the corresponding callbacks\n    - In an error occurs, the task is re-scheduled (you can specify the cooldown) and the error is saved in a dedicated table\n    - To guarantee operation integrity, you can use the same transaction as the Scheduler\n\n## Concurrency\nPGoTask is \"concurrency-safe\"; it's designed to be used from different services at the same time.\n__Every dispatch applies a table lock__, so you can be sure that there won't be another Scheduler handling the same tasks as you.\n\n## Task scheduling\nIt's possible to schedule tasks from the Scheduler itself _and_ \"manually\", via querying the table directly.\nIn this way, the system is very flexible:\n- The service can schedule tasks indipendently\n- It's possible to create task for specific deploys or routines, via migration scripts\n- In extreme cases, you can create tasks manually, by querying your db\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaleeus%2Fpgotask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaleeus%2Fpgotask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaleeus%2Fpgotask/lists"}