857 B
857 B
concron
Containerized cron. Golang native scheduler to run repeated command inside containers (Docker, k8s)
command-line
examples:
# run with config file 'tasks.yaml' located in current directory
concron -c tasks.yaml
# show options
concron -h
arguments:
-c <config file> : config file, YAML format
-h : show help
-p <http port> : http port for http server (default: 8080)
-debug : show debug logs
http server endpoint
/healthz
- health endpoint, returns code200
with textOK
. Useful for kubernetes pods ready/live probes.
global env variables
ALLOWED_TASKS
- list comma-separated task names, only tasks with these names will be processed. example:
ALLOWED_TASKS=sleep,hello_world
config format
example:
see tasks.yaml
description:
in work...