Skip to content

j1fig/corn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

corn

A simple, naive, but understood scheduler.

Installation

The package can be installed by adding corn to your list of dependencies in mix.exs:

def deps do
  [
    {:corn, "~> 0.1.0"}
  ]
end

Usage

corn is used in a declarative fashion. In you relevant application config:

config :corn, MyApp.Task,
  module: MyApp.Task,
  function: :do_work,
  period: 86400, # daily
  delay: 180

config :corn, MyApp.OtherTask,
  module: MyApp.OtherTask,
  function: :do_work,
  period: 3600, # hourly
  delay: 180

About

A simple, naive, but understood scheduler.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages