How does nodejs dynamically add and delete scheduled tasks

  node.js, question

I want to generate timing tasks in the background through http request, and the generated timing tasks can also be suspended, continued and deleted through http request. Is there any good implementation method?
Thank you!

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