{"id":15010925,"url":"https://github.com/metric-space/tiny-scheduler","last_synced_at":"2025-12-11T23:22:41.419Z","repository":{"id":56880602,"uuid":"88317912","full_name":"metric-space/tiny-scheduler","owner":"metric-space","description":"no-brainer job scheduler for haskell","archived":false,"fork":false,"pushed_at":"2019-03-27T19:13:18.000Z","size":14,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T06:39:46.862Z","etag":null,"topics":["composable-time-units","easy-job-scheduler","haskell","job-scheduler"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metric-space.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}},"created_at":"2017-04-15T02:25:15.000Z","updated_at":"2022-03-22T00:05:51.000Z","dependencies_parsed_at":"2022-08-20T23:10:37.774Z","dependency_job_id":null,"html_url":"https://github.com/metric-space/tiny-scheduler","commit_stats":null,"previous_names":["functor-soup/tiny-scheduler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metric-space%2Ftiny-scheduler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metric-space%2Ftiny-scheduler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metric-space%2Ftiny-scheduler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metric-space%2Ftiny-scheduler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metric-space","download_url":"https://codeload.github.com/metric-space/tiny-scheduler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248088371,"owners_count":21045700,"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":["composable-time-units","easy-job-scheduler","haskell","job-scheduler"],"created_at":"2024-09-24T19:37:36.420Z","updated_at":"2025-12-11T23:22:41.373Z","avatar_url":"https://github.com/metric-space.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tiny-scheduler\n\nUtility Library to run jobs concurrently at predetermined Intervals\n\n## Basic Example\n\n```haskell\n\nimport TinyScheduler.Jobs\nimport TinyScheduler.SubJobs\nimport TinyScheduler.Time\nimport Data.Time\n\nintervalio :: Interval\nintervalio = (Minutes 1) + (Secs 20)\n\njobx :: UTCTime -\u003e Job ()\njobx x = makeJob 1234 4 intervalio x (putStrLn \"Hello\")\n\nmain :: IO ()\nmain = getCurrentTime \u003e\u003e= (\\x -\u003e\n      execSubJobs . convertJobIntoSubJobs x $ (jobx x)) \u003e\u003e \n      return ()\n\n```\n\n### A little more advanced Example\n\nIn the following, assuming that time starts at 0, jobs are fired at 1 minute 2 seconds, 1 minutes 4 seconds,\nand 2 minutes 2 seconds and 2 minutes 4 seconds from current time\n\n```haskell\n\nimport TinyScheduler.Jobs\nimport TinyScheduler.SubJobs\nimport TinyScheduler.Time\nimport Data.Time\nimport Data.Monoid\n\natom1 :: TimeAtom\natom1 =  makeTimeAtom 2 (Minutes 1)\n\natom2 :: TimeAtom\natom2 =  makeTimeAtom 2 (Secs 2)\n\njobx :: UTCTime -\u003e Job ()\njobx x = timeAtomToJob 1234 (putStrLn \"Hello\") x (atom1 \u003c\u003e atom2)\n\nmain :: IO ()\nmain = getCurrentTime \u003e\u003e= (\\x -\u003e\n      execSubJobs . convertJobIntoSubJobs x $ (jobx x)) \u003e\u003e \n      return ()\n\n```\n\n# how to install\n\n`stack install tiny-scheduler`\n\n## pending work\n1. Tests\n2. More documentation\n3. Haddock documentation\n4. Complete the example below\n\n\n### for an application based example (still in progress)\ngo to  [https://github.com/functor-soup/tiny-simple-scheduler-example](https://github.com/functor-soup/tiny-simple-scheduler-example)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetric-space%2Ftiny-scheduler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetric-space%2Ftiny-scheduler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetric-space%2Ftiny-scheduler/lists"}