{"id":28259853,"url":"https://github.com/dataoneorg/sysmwatch","last_synced_at":"2025-06-15T17:30:48.842Z","repository":{"id":83563537,"uuid":"331687310","full_name":"DataONEorg/sysmwatch","owner":"DataONEorg","description":"Simple monitoring tool for DataONE systemmetadata","archived":false,"fork":false,"pushed_at":"2025-04-21T21:16:13.000Z","size":45,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-20T03:13:24.747Z","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/DataONEorg.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,"zenodo":null}},"created_at":"2021-01-21T16:32:08.000Z","updated_at":"2025-04-21T21:16:16.000Z","dependencies_parsed_at":"2025-04-21T22:26:42.552Z","dependency_job_id":null,"html_url":"https://github.com/DataONEorg/sysmwatch","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"e4d2c0aba8f8793786a766ea4dbfb862f31608f8"},"previous_names":["dataoneorg/sysmwatch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DataONEorg/sysmwatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataONEorg%2Fsysmwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataONEorg%2Fsysmwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataONEorg%2Fsysmwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataONEorg%2Fsysmwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataONEorg","download_url":"https://codeload.github.com/DataONEorg/sysmwatch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataONEorg%2Fsysmwatch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260021761,"owners_count":22947022,"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":"2025-05-20T03:13:22.496Z","updated_at":"2025-06-15T17:30:48.834Z","avatar_url":"https://github.com/DataONEorg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sysmwatch\n\nThis python tool watches the postgres systemmetadata tables, pulling out entries\nwith dateModified more recent than a specified value.\n\nIdentifiers are examined in the Solr index, and flagged if the indexed dateModified \ndoes not match that of the systemMetadata.\n\nThe process is fairly efficient and may provide a basis for implementing\na replacement for the index-task-generator which currently relies on hazelcast events.\n\nOutput is to a JSON file that can be rendered with a simple handsontable implemnetation.\n\n## Approaches\n\nThere are several approaches to postgres event notification:\n\n1. Polling. Periodic query to retrieve a (hopefully) limited set of changes. Implemented in `main.py`.\n2. Listening for `pg_notify` events. Implemented in `listen.py`\n3. Using a postgres extension to call a amqp message queue. Listener in `listenq.py`\n4. Write events to a queue table (e.g. using a trigger) and retrieve events by querying the table using the `SKIP LOCKED` semantics. Not implemented here, some discussion on [stack overflow](https://stackoverflow.com/questions/297280/the-best-way-to-use-a-db-table-as-a-job-queue-a-k-a-batch-queue-or-message-queu). Simple example on [HN](https://news.ycombinator.com/item?id=20020501).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataoneorg%2Fsysmwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdataoneorg%2Fsysmwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataoneorg%2Fsysmwatch/lists"}