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] 0.1.0.0, 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.4.0, 0.1.4.1, 0.1.4.2, 0.1.4.3
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:0.1.4.3
Downloads 2585 total (188 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2017-04-15 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for tiny-scheduler-0.1.1.1

[back to package description]

tiny-scheduler

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