Scheduler commands through node.js

This is kind of a noob question, but I’d like to know how I could write in scheduler calls into html widgets using node.js, similarly to how the active jobs app works. I have looked through the code repo, but cannot figure it out.

I’d like to start with a simple ‘scancel jobid’ call from a button.

Any guidance on how to get started with this?

Hi! Sorry for the delay. I assume this is a passenger app in which you wrote the backend server for.

If that’s the case, what you want to do is turn that button into a form that can POST requests back to the backend server. The backend server, having received a POST request to say something like /myapp/scancel can then issue CLI commands.

Not sure if that answers your question, but feel free to post again and I’ll respond.