{"id":15647777,"url":"https://github.com/zricethezav/gronit","last_synced_at":"2025-04-30T13:28:24.503Z","repository":{"id":52712244,"uuid":"114430186","full_name":"zricethezav/gronit","owner":"zricethezav","description":"Cron monitoring written in Go","archived":false,"fork":false,"pushed_at":"2021-04-20T13:09:35.000Z","size":49,"stargazers_count":43,"open_issues_count":4,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-30T13:28:13.859Z","etag":null,"topics":["ops"],"latest_commit_sha":null,"homepage":"","language":"Go","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/zricethezav.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}},"created_at":"2017-12-16T03:23:11.000Z","updated_at":"2025-02-11T21:33:45.000Z","dependencies_parsed_at":"2022-08-21T20:40:13.423Z","dependency_job_id":null,"html_url":"https://github.com/zricethezav/gronit","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/zricethezav%2Fgronit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zricethezav%2Fgronit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zricethezav%2Fgronit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zricethezav%2Fgronit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zricethezav","download_url":"https://codeload.github.com/zricethezav/gronit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251712263,"owners_count":21631361,"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":["ops"],"created_at":"2024-10-03T12:21:02.328Z","updated_at":"2025-04-30T13:28:24.481Z","avatar_url":"https://github.com/zricethezav.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gronit\n#### A Cron monitor written in Go.\n\n##### Features:\n * Update and check job status remotely\n * View statistics of jobs\n * Bare bones alternative to services like Cronitor\n\n##### Installing:\n```\n$ go get github.com/zricethezav/gronit\n```\n\n##### Usage: \n\n```\n$ ./gronit\n```\nThis will start a server on default port `3231`. Change the port with `-p` or `--port` option.\n\nGenerate a job tracker (with a gronit server running):\n```\n$ curl 127.0.0.1:3231/create\n{\"id\":\"f7a324\"}\n```\n`/create` generates a job tracking token. Now we can wrap any command with gronit.\n\n```\n# sample crontab\n*/2 * * * * curl -s 127.0.0.1:3231/run/f7a324 \u0026\u0026 sleep `echo $((1 + RANDOM \\% 5))` \u0026\u0026 curl -s 127.0.0.1:3231/complete/f7a324\n\n```\n#### API \nGET\n* `/create` generate new job id\n* `/run/{id}` update jobs's status to be 'running'\n* `/complete/{id}` update jobs's status to be 'complete'\n* `/status/{id}` status of job\n  * sample response:```{\"status\":\"complete\",\"time\":\"2018-01-10T13:36:05.197347-06:00\"}```\n* `/summary/{id}` job statistics for a job\n  * sample response: ```{\"status_count\":24,\"run_count\":12,\"completion_count\":12,\"average_time_to_completion\":2200,\"created_at\":\"2018-01-10T13:08:11.675697-06:00\"}```\n* `/history/{id}` full list of status updates for a job\n  * sample response:\n  ```[{\"status\":\"running\",\"time\":\"2018-01-10T13:10:00.281757-06:00\"},{\"status\":\"complete\",\"time\":\"2018-01-10T13:10:01.408825-06:00\"}]```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzricethezav%2Fgronit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzricethezav%2Fgronit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzricethezav%2Fgronit/lists"}