{"id":16376512,"url":"https://github.com/marginalhours/pq-issue-replication","last_synced_at":"2026-04-07T00:30:20.023Z","repository":{"id":112567612,"uuid":"388111893","full_name":"marginalhours/pq-issue-replication","owner":"marginalhours","description":"Quick replication of a PQ task API issue","archived":false,"fork":false,"pushed_at":"2021-07-21T12:38:04.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T08:15:08.836Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/marginalhours.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}},"created_at":"2021-07-21T12:37:34.000Z","updated_at":"2021-07-21T12:38:06.000Z","dependencies_parsed_at":"2023-05-16T08:30:14.875Z","dependency_job_id":null,"html_url":"https://github.com/marginalhours/pq-issue-replication","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marginalhours%2Fpq-issue-replication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marginalhours%2Fpq-issue-replication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marginalhours%2Fpq-issue-replication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marginalhours%2Fpq-issue-replication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marginalhours","download_url":"https://codeload.github.com/marginalhours/pq-issue-replication/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239970660,"owners_count":19727010,"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":[],"created_at":"2024-10-11T03:24:56.811Z","updated_at":"2026-04-07T00:30:19.985Z","avatar_url":"https://github.com/marginalhours.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PQ task bug replication \n\nTested with `python==3.9.5` and package versions in `requirements.txt` \n\n## Testing\n\nSpin up a `postgres` instance somehow. I used:\n\n```\ndocker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres\n```\n\nThen in one terminal, run `python publisher.py` to start publishing tasks.\nIn another, run `python consumer.py` to start consuming tasks.\n\n## Scenarios \n\n- When running `consumer.py`, if line `7` is commented out and the task is not imported,\nthen the pq `queue` table in postgres will rapidly grow in size (as seen through `publisher.py` output). \nNo output will be produced by the `consumer.py` script even though the `dummy_task` task should print \nto stdout.\n\n- When running `consumer.py` with line `7` *un*commented then the pq `queue` table will grow much more\nslowly (only from the inserts from `publisher.py`). `consumer.py` will produce output as it executes\nthe tasks successfully.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarginalhours%2Fpq-issue-replication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarginalhours%2Fpq-issue-replication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarginalhours%2Fpq-issue-replication/lists"}