{"id":32187541,"url":"https://github.com/kasta-ua/saturn","last_synced_at":"2025-10-22T00:09:57.329Z","repository":{"id":45320794,"uuid":"317920167","full_name":"kasta-ua/saturn","owner":"kasta-ua","description":"Periodic cron-like jobs inside your JVM","archived":false,"fork":false,"pushed_at":"2022-03-05T12:55:58.000Z","size":10,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-22T00:06:01.024Z","etag":null,"topics":["clojure","clojure-library","cron","crontab","jvm","schedule","scheduler"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/kasta-ua.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-12-02T16:19:45.000Z","updated_at":"2023-03-28T17:18:30.000Z","dependencies_parsed_at":"2022-09-01T20:24:54.165Z","dependency_job_id":null,"html_url":"https://github.com/kasta-ua/saturn","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kasta-ua/saturn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasta-ua%2Fsaturn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasta-ua%2Fsaturn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasta-ua%2Fsaturn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasta-ua%2Fsaturn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kasta-ua","download_url":"https://codeload.github.com/kasta-ua/saturn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasta-ua%2Fsaturn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280354865,"owners_count":26316558,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["clojure","clojure-library","cron","crontab","jvm","schedule","scheduler"],"created_at":"2025-10-22T00:05:19.601Z","updated_at":"2025-10-22T00:09:57.324Z","avatar_url":"https://github.com/kasta-ua.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Saturn\n\nSaturn is a library for building and managing periodic cron-like jobs.\n\n## Usage\n\n```clojure\n(require '[mount.core :as mount]\n         '[saturn.core :as saturn]\n         '[saturn.store.pg :as store])\n\n\n(def commands\n  {\"cmd1\" {:func #(println \"cmd1\")\n           :schedule [:every :monday :at 9 0]}})\n\n\n(defn report-error [{:keys [command error]}]\n  (println \"cron error\" command error))\n\n\n(defn report-overlap [{:keys [command]}]\n  (println \"cron command overlap\" command))\n\n         \n(mount/defstate cron\n  :start (saturn/make commands\n           {:store            (store/pg db-conn)\n            :restart-skipped? true\n            :cleanup-history? true\n            :report-error     report-error\n            :report-overlap   report-overlap})\n  :stop  (saturn/stop cron))\n```\n\n\n## Options\n\n| option             | type                 | description                        |\n|--------------------|----------------------|------------------------------------|\n| `store`            | `saturn.store/State` | schedule state storage             |\n| `restart-skipped?` | `boolean`            | restart previously unfinished jobs |\n| `cleanup-history?` | `boolean`            | remove runs history from storage   |\n| `report-error`     | `IFn`                | function to report run errors      |\n| `report-overlap`   | `IFn`                | function to report overlap errors  |\n\n\n## Schedule syntax\n\nQuestion mark means component is optional, star - it repeats 0 or more times.\n\n`[:every period? unit \u003c:at hour? minute\u003e*]`\n\n| component | description                                       |\n|-----------|---------------------------------------------------|\n| `period`  | int, like in \"every 3 days\" or \"every 30 minutes\" |\n| `unit`    | minute(s), hour(s), day(s) and week day names     |\n| `hour`    | from 0 to 24                                      |\n| `minute`  | from 0 to 60                                      |\n\nExamples:\n\n* `[:every :minute]`\n* `[:every 2 :hours :at 50]`\n* `[:every 1 :day :at 8 0, 13 0, 20 0]`\n* `[:every :monday :at 9 0]`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasta-ua%2Fsaturn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkasta-ua%2Fsaturn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasta-ua%2Fsaturn/lists"}