Best way to create a job queue

I have a requirement to create a bunch of PDFs based on some data from the database. Each takes 10-20s. I’m happy for these to run in the background. Is there a way in Backendless to queue these kind of jobs?

The simplest approach would be to create a table where you would put “jobs”. Each job is a data record with all the details (data, metadata, etc) for generating a PDF.

Then you create a timer (in Cloud Code) that wakes every so often and gets the first record from the jobs table. The timer would process the job and generate a PDF. Make sure to delete the record for the job, so it on the next cycle of the timer, it will get the next one.

Hope this helps.

Mark

Thanks.