Replies: 1 comment 3 replies
-
Use |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
When we call the
getJobs
to get a list of completed jobs, on a queue, will the jobs be first retrieved from the completed list and then sorted or vice versa ?Say we have a queue with 5000 completed jobs. I want to get the latest 2 completed jobs i.e. [job#5000, job#4999] . So which one of the following calls will give the correct list of jobs in the above given order ?
getJobs(['completed'], 0, 1, false)
getJobs(['completed'], 4998, 4999, false)
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions