在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):MichaelXavier/cron开源软件地址(OpenSource Url):https://github.com/MichaelXavier/cron开源编程语言(OpenSource Language):Haskell 100.0%开源软件介绍(OpenSource Introduction):cronCron data structure and Attoparsec parser for Haskell. The idea is to embed it in larger systems which want to roll their own scheduled tasks in a format that people are used to.
To do anything, you'll need to install cabal-dev with cabal. To build, run:
To run tests, run:
If you have inotify-tools, run this to run tests continuously.
To generate docs:
SchedulerCron offers a scheduling monad which can be found in main :: IO ()
main = do
...
tids <- execSchedule $ do
addJob job1 "* * * * *"
addJob job2 "0 * * * *"
print tids
...
job1 :: IO ()
job1 = putStrLn "Job 1"
job2 :: IO ()
job2 = putStrLn "Job 2" Describemain :: IO ()
main = do
let Right cs1 = parseCronSchedule "*/2 * 3 * 4,5,6"
print $ describe defaultOpts cs1
let Right cs2 = parseCronSchedule "*/2 12 3 * 4,5,6"
print $ describe (twentyFourHourFormat <> verbose) cs2 Contributors |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论