Answer the question
In order to leave comments, you need to log in
How to queue a task in Node?
For example, such functionality - you click on a button in the GUI, and after a specified time, let's say after 1 hour, a certain script is executed. How is this problem statement implemented? Where is it stored? This should work even if the server reboots, eg.
If it's not difficult, a link to the tutorial / docs will not hurt, and not just an indication of the name of the technology.
Answer the question
In order to leave comments, you need to log in
There is a certain base into which tasks fall down, there is a certain demon that goes to this base and subtracts tasks from it, for which it is time to be executed, and then it performs this task. It's simple, the type of base, daemon and other components depend on your needs, type, quantity, complexity of tasks, etc.
When you click on a button in your GUI, you simply add an entry to the magic table.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question