scalebox/dockerfiles/cron
kaichao 407aba52b4 add pull action in Makefile. 2023-11-08 22:26:36 +08:00
..
Dockerfile update golang to 1.20.6 2023-07-16 22:25:54 +08:00
Makefile add pull action in Makefile. 2023-11-08 22:26:36 +08:00
README.md add common module cron. 2023-04-06 22:58:02 +08:00
app.yaml add common module cron. 2023-04-06 22:58:02 +08:00
cron.txt add common module cron. 2023-04-06 22:58:02 +08:00
go.mod update golang to 1.20.6 2023-07-16 22:25:54 +08:00
go.sum add common module cron. 2023-04-06 22:58:02 +08:00
main.go add common module cron. 2023-04-06 22:58:02 +08:00

README.md

cron module

Introduction

The cron module is a scalebox public module similar to the cron function under UNIX, which periodically sends messages to each sub-module to start related timing operations.

Usage

Define timing operations for multiple modules through the file cron.txt.

In the cron.txt file, lines beginning with '#' are comment lines.

Each line defines the timing operation for a module, including timing operation interval definition and module name, separated by commas.

A sample cron.txt file is as follows:

# comments for cron.txt
@every 1m,mod0
@every 1m30s,mod1

The definition part of the timing operation interval refers to: cron-doc