Skip to content

Commit

Permalink
refactor(scheduler): remove assert that was causing trouble before ab…
Browse files Browse the repository at this point in the history
…ove commit

(And still is if old executor is talking to new scheduler.)
  • Loading branch information
symbiont-stevan-andjelkovic committed Sep 15, 2021
1 parent b77f9da commit 4039487
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/scheduler/src/scheduler/pure.clj
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,6 @@
;; TODO(stevan): go into error state if response body is of form {"error": ...}
;; (if (:error events) true false)

;; TODO(stevan): Change executor to return this json object.
(assert (= (keys events) '(:events :corrId))
(str "execute!: unexpected response body: " events))
(log/debug :events events)

(assert (:run-id data) "execute!: no run-id set...")
Expand Down Expand Up @@ -671,8 +668,6 @@
:body
json/read
(update :events expand-events))]
(assert (= (keys events) '(:events :corrId))
(str "execute!: unexpected response body: " events))
(doseq [event (:events events)]
(conj! all-events event))))
(let [events (->> all-events
Expand Down

0 comments on commit 4039487

Please sign in to comment.