aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-06-19 23:54:12 +0100
committerChristopher Baines <mail@cbaines.net>2019-06-19 23:54:12 +0100
commit66364207f4da62f6de063c70f95f28186973f6c9 (patch)
tree9e23158ea2b355024461864edde4166b348ce493 /guix-data-service
parentea80311c496b482e1360b5eee730f7f032c62c3d (diff)
downloaddata-service-66364207f4da62f6de063c70f95f28186973f6c9.tar
data-service-66364207f4da62f6de063c70f95f28186973f6c9.tar.gz
Process jobs starting with the most recent
Conventionally, you'd process the oldest job in a queue, but at the moment, it would be more useful to have recent information more promptly, and fill in the historical gaps later. I'm not sure this'll always be the case, but for now, flip the order in which jobs are processed.
Diffstat (limited to 'guix-data-service')
-rw-r--r--guix-data-service/jobs/load-new-guix-revision.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix-data-service/jobs/load-new-guix-revision.scm b/guix-data-service/jobs/load-new-guix-revision.scm
index a79d02a..479de33 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -519,7 +519,7 @@ ORDER BY load_new_guix_revision_jobs.id DESC")
"FROM load_new_guix_revision_job_events "
;; Skip jobs that have failed, to avoid trying them over and over again
"WHERE job_id = load_new_guix_revision_jobs.id AND event = 'failure'"
- ") ORDER BY id ASC LIMIT 1")))
+ ") ORDER BY id DESC LIMIT 1")))
(define (record-job-event conn job-id event)
(exec-query