Skip to content
networkteamPublic

About

A small cloud-native cron alternative to run multiple scheduled commands (especially in Docker containers)

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minicron

A small cloud-native cron alternative to run multiple scheduled commands (especially in Docker containers).

Usage

Pass multiple commands with -c each with [name], [schedule] and [command]:

minicron -v -c sleep "@every 7s" "sleep 11"\
            -c sing "0 0 12 * * 1-5" "echo Lunch"

See https://godoc.org/github.com/robfig/cron for the complete interval / schedule syntax.

Minicron will prevent multiple command executions if a command is still running. Stdout / Stderr output is combined for all commands.

Note: Commands are exec'd without a subshell.

Running in Docker

docker pull networkteamcom/minicron
docker run -it --rm networkteamcom/minicron -v -c "test" "@every 5s" "echo Test"

But most of the time you might want to use this in a multi-stage build to copy the static binary to another image.

About

A small cloud-native cron alternative to run multiple scheduled commands (especially in Docker containers)

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址