tiny-scheduler: tiny no-brainer job scheduler

[ bsd3, library, web ] [ Propose Tags ]

this is a tiny library to make scheduling jobs to run predermined intervals easier

[Skip to Readme]
Versions [faq],,,,,,,
Dependencies async, base (>=4.7 && <5), time [details]
License BSD-3-Clause
Copyright None
Author Functor soup
Maintainer functor.soup@gmail.com
Category Web
Home page https://github.com/functor-soup/tiny-scheduler#readme
Source repo head: git clone https://github.com/functor-soup/tiny-scheduler
Uploaded by functor_soup at Sat Apr 15 05:23:06 UTC 2017
Distributions NixOS:
Downloads 3316 total (191 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2017-04-15 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for tiny-scheduler-

[back to package description]


Utility Library to run jobs concurrently at predertmined Intervals

Basic Example

import TinyScheduler.Jobs
import TinyScheduler.SubJobs
import Data.Time

jobx :: UTCTime -> Job ()
jobx x = Job 1234 x (Secs 20) 4 (putStrLn "Hello")

main :: IO ()
main = getCurrentTime >>= (\x ->
      execSubJobs . convertJobIntoSubJobs x $ (jobx x)) >> 
      return ()

how to install

stack install tiny-scheduler

for a more advanced example (still in progress)

go to https://github.com/functor-soup/tiny-simple-scheduler-example