search

Home  >  Q&A  >  body text

node.js - nodejs如何动态增加删除定时任务

我想通过http请求在后台生成定时任务,而且对生成的定时任务也能通过http请求实现暂停,继续和删除的操作,请问有什么好的实现方法吗?
谢谢!

黄舟黄舟2864 days ago455

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 15:02:08

    My previous approach was to edit the crontab list through node and then write it in the form of an interface.
    If you pause and continue, you may need to maintain a crontab backup list. .

    reply
    0
  • Cancelreply