Skip to content

Commit

Permalink
docs: add schedule max interval (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse authored and popomore committed Apr 1, 2017
1 parent 9e94b7b commit a9d27d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/zh-cn/basics/schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ exports.schedule = {
};
```

**注意:由于 setTimeout 的时间有最大限制(2147483647,换算成天数是 24 天多),所以定时任务的间隔不能设置大于该数值,包括 interval 以及 cron 方式。**

### 类型

框架提供的定时任务默认支持两种类型,worker 和 all。worker 和 all 都支持上面的两种定时方式,但是当到执行时机时,会执行定时任务的 worker 不同
Expand Down

0 comments on commit a9d27d0

Please sign in to comment.