2023-07-27 10:03:56 +00:00
2022-02-04 20:23:04 +01:00
2022-02-04 20:23:04 +01:00
2022-02-04 20:23:04 +01:00
2022-02-04 20:23:04 +01:00
2022-01-10 20:02:03 +00:00
2022-02-04 20:23:04 +01:00
2022-02-04 20:23:04 +01:00
2022-02-04 20:23:04 +01:00
2022-02-04 20:23:04 +01:00
2023-07-27 10:03:56 +00:00

gocron-server

Small job scheduling server/library based on gocron. Besides providing cron-functionality it also offers a gRPC API to manually trigger/schedule jobs and listen for their completion.

Sample config:

[server]
host=":9092"

# This unit will be executed every minute or can be manually triggered.
[[unit]]
name="echo"
command="echo hello"
cron="* * * * *"

# This unit can only be manually triggered.
[[unit]]
name="notify"
command="notify-send hello"

Usage

go run cmd/main.go <job-definition-toml>
# Example: go run cmd/main.go examples/config.toml

Jobs can also be defined using code by extending the server. For an example of extending the server see this example.

Description
Small job scheduling server/library based on gocron
Readme 43 KiB
Languages
Go 94.6%
Shell 3.8%
Makefile 1.6%