Module cron

定时任务相关

Functions

start (crontab, callback) 创建计划任务
stop (id) 删除任务


Functions

start (crontab, callback)
创建计划任务

Parameters:

  • crontab string Linux crontab格式,支持到秒,[]
  • callback function

Returns:

  1. boolean 成功与否
  2. integer 任务ID
stop (id)
删除任务

Parameters:

  • id integer
generated by LDoc 1.5.0 Last updated 2025-09-29 06:23:42