Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit baf99b7

Browse files
author
Scott Crosby
committed
Enable positive number
1 parent 4729cae commit baf99b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scheduler/src/cook/tools.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@
566566
; entities for pending jobs don't have that and aren't cached. This makes
567567
; that cache essentially noop for pending jobs; they always miss.
568568
; Fix this by borrowing the :db/id of the source job.
569-
(merge {:db/id (- (:db/id pending-job-ent))
569+
(merge {;:db/id (+ (:db/id pending-job-ent))
570570
;:db/id 0
571571
:job/_instance pending-job-ent
572572
:instance/status :instance.status/running}
@@ -581,7 +581,7 @@
581581
; entities for pending jobs don't have that and aren't cached. This makes
582582
; that cache essentially noop for pending jobs; they always miss.
583583
; Fix this by borrowing the :db/id of the source job.
584-
(merge {:db/id (- (:db/id pending-job-ent))
584+
(merge {;:db/id (+ (:db/id pending-job-ent))
585585
;:db/id 0
586586
:job/_instance pending-job-ent
587587
:instance/status :instance.status/running}

0 commit comments

Comments
 (0)