tiny-scheduler: tiny no-brainer job scheduler

[ bsd3, library, web ] [ Propose Tags ]

this is a tiny library to make scheduling jobs to run at predetermined intervals, easier


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 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 2017-04-15T05:25:29Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 4937 total (18 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-04-15 [all 1 reports]

Readme for tiny-scheduler-0.1.1.2

[back to package description]

tiny-scheduler

Utility Library to run jobs concurrently at predetermined 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