8000 GitHub - j1fig/corn: A simple, naive, but understood scheduler. · GitHub
[go: up one dir, main page]

Skip to content
Dismiss alert
j1figPublic

About

A simple, naive, but understood scheduler.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0