timer

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2022 License: MIT

README

timer

crontab类型及delay类型的定时器服务,并带有重试机制。 比linux的crontab功能更多,也更方便管理及控制。

fixed

1、实现Linux crontab的功能;
2、可以指定开始时间;(而 linux crontab只能从加入那刻开始计算)
3、每一个固定的时间点都会回调任务,即使服务异常停服后重启, 都会补齐每一个执行时间点的任务

delay

1、延时任务,延时的时间不小于设定的时间;
2、服务重启后,会补齐没有执行的延时服务;

callback retry

1、按照一定的时间规律重试,超过20天仍然没有成功,则可能不再重试
2、回调服务需要幂等

manage task

api 调用即可管理

Directories

Path Synopsis
db
main command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL