
1 zdnuist 2018 年 7 月 30 日 Quartz |
2 b821025551b 2018 年 7 月 30 日 这种用 Redis 来实现很方便。 |
3 qf0129 2018 年 7 月 30 日 via iPhone Celery 有 async_task 可以指定时间或者延迟执行 |
5 Rekkles 2018 年 7 月 30 日 crontab |
7 tomczhen 2018 年 7 月 30 日 via Android 业余允许的话,在建立订单的时候设定好 expire at 时间,同时返回 expire in n sec 给前端,发生查询或业务时判断 expire at 时间来做是否过期判断。 |
9 misaka19000 2018 年 7 月 30 日 为啥不友好?我觉得就挺好的 单独写个项目来处理这些定时任务不就行了 |
10 justseemore 2018 年 7 月 30 日 写 daemon 啊,时间肯定比一分钟短。。 |
11 victrec 2018 年 7 月 30 日 |
12 thinkwei2012 2018 年 7 月 30 日 同意 Redis |
13 hahasong 2018 年 7 月 30 日 写个 go 服务长驻进程,周期性检查处理 |
14 Zzdex OP |
16 lshero 2018 年 7 月 30 日 延时队列 |
17 brickyang 2018 年 7 月 30 日 via iPhone |
18 lihongjie0209 2018 年 7 月 30 日 DelayQueue 可以做, 但是一旦你考虑到任务持久化的问题, 轮询数据库最简单 |
19 sampeng 2018 年 7 月 30 日 了解一下 time wheel。。。。。其实就定时某一个时间点自然是每隔多久检查一下当前时间是什么时候。。 |
21 jimmyye 2018 年 7 月 30 日 http://docs.celeryproject.org/en/latest/userguide/calling.html#eta-and-countdown >The ETA (estimated time of arrival) lets you set a specific date and time that is the earliest time at which your task will be executed. countdown is a shortcut to set ETA by seconds into the future. |
22 wq7 2018 年 7 月 30 日 1. celery 自带按照指定时间执行的任务功能,不过使用 redis 有坑(可以自己先踩踩)。 2. 用 go 实现一个定时。 3. 现成的定时框架。 |
23 Raymon111111 2018 年 7 月 30 日 用缓存+时间片 然后轮询时间片 |
26 qf0129 2018 年 7 月 31 日 eta 是个啥 这就不清楚了 |
27 fangdingjun 2018 年 8 月 1 日 我会用最懒的办法,数据库记录过期时间,显示订单时再更新状态 |