首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
The Go Programming Language
›
http://golang.org/
›
Go Playground
Go Projects
›
Revel Web Framework
广告
V2EX
›
Go 编程语言
go 有定时任务么?
nomoon
·
2017-05-25 11:47:31 +08:00
· 1932 次点击
这是一个创建于 2534 天前的主题,其中的信息可能已经有所发展或是发生改变。
遇到的问题:现在在用 ticker,但是碰到应用起来的时候不同步,于是每个 instance 里的 interval 不同步,所以想问说 golang 里面有没有可以标明下一次运行时间的 ticker
ticker
Golang
interval
Instance
3 条回复
•
2017-05-25 12:30:57 +08:00
1
zdt3476
2017-05-25 11:52:59 +08:00
1
github.com/robfig/cron
这个库不知道是否满足你的需求
2
nomoon
OP
2017-05-25 12:03:10 +08:00
@
zdt3476
谢谢,我去看下
3
lusizeng
2017-05-25 12:30:57 +08:00
https://github.com/kakuilan/ktimer,目前功能比较简单,就是定时访问
URL 接口的
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
我们的愿景
·
实用小工具
·
2070 人在线
最高记录 6543
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 01:28
·
PVG 09:28
·
LAX 18:28
·
JFK 21:28
Developed with
CodeLauncher
♥ Do have faith in what you're doing.