I have built a chrome extension that performs a set of actions on a random webpage. The extension seems to work fine and I plan to run it on a VPS running Ubuntu with a XFCE desktop environment. Now the extension needs to perform this tasks on several pages but not concurrently but rather one after the other.
To put it simply, I need to perform the following set of tasks..
1. Cronjob runs (say every minute) and checks if a task is being executed in chrome.
- Pull out a website from a mysql stack
- Start performing the task
- Extension handles saving the output to the database and updates the flag indicating no tasks are running
- Do nothing
I have reached to a point where the extension runs manually, but I need to automate this process and have multiple VPS execute similar tasks.