Lee
Well-known member
I'm not sure if I have approached this correctly, or if anybody can think of a better, more efficient way to do this.
I have a cron that selects x amount of threads based on the total amount of replies.
If the replies are greater than an option defined number, then I add them to a table to be processed.
These threads are then then sent to a third party API to be evaluated. At the moment there is one API call per thread. I have used the job system to "Enqueue" the x amount of tasks. Once they have been processed, they are marked as such so they aren't selected for processing again.
This works very well, but takes up lots of API calls / money - and also means for existing threads that need processing, it can be a VERY lengthy process.
Is there a better, more efficient way to approach this?
I have a cron that selects x amount of threads based on the total amount of replies.
If the replies are greater than an option defined number, then I add them to a table to be processed.
These threads are then then sent to a third party API to be evaluated. At the moment there is one API call per thread. I have used the job system to "Enqueue" the x amount of tasks. Once they have been processed, they are marked as such so they aren't selected for processing again.
This works very well, but takes up lots of API calls / money - and also means for existing threads that need processing, it can be a VERY lengthy process.
Is there a better, more efficient way to approach this?