Sunday, 4 June 2017

Start, Pause and Stop a Node.js process/loop

I'm in the process of building a bot that basically fetches images based on a search query(simple string), this bot needs to run 24/7, however multiple bots must be 'spawned' for different accounts, I already have the bot done, it basically takes in a config file and starts looping, however what would be the best approach to pause and stop this process?

I have looked into Node's spawn child functions, i have looked into RxJs's scheduler, but I am not sure which is the best bet, to approach something like this. Any insight would be helpful, thank you!



via PeaceBringer

No comments:

Post a Comment