Jobs compress: Use explicit iterator over jobs
requested to merge igo95862/lava:collabora-staging-jobs-compress-explicit-iterator into collabora/staging
By default enumerate(jobs)
would fetch ALL THE JOBS from the
database. This caused an excessive amount of RAM usage.
By explicitly calling the iterator
the enumeration will become
lazy and only 100 jobs at the time would be fetched from database.